diff options
Diffstat (limited to 'test/MC/MachO/ARM/version-min-diagnostics.s')
-rw-r--r-- | test/MC/MachO/ARM/version-min-diagnostics.s | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/MC/MachO/ARM/version-min-diagnostics.s b/test/MC/MachO/ARM/version-min-diagnostics.s new file mode 100644 index 0000000..15d44d3 --- /dev/null +++ b/test/MC/MachO/ARM/version-min-diagnostics.s @@ -0,0 +1,49 @@ +// RUN: not llvm-mc -triple i386-apple-darwin %s 2> %t +// RUN: FileCheck %s < %t +// RUN: not llvm-mc -triple x86_64-apple-darwin %s 2> %t +// RUN: FileCheck %s < %t +// RUN: not llvm-mc -triple armv7-apple-ios %s 2> %t +// RUN: FileCheck %s < %t + +.ios_version_min 5,2,257 +.ios_version_min 5,256,1 +.ios_version_min 5,-1,1 +.ios_version_min 0,1,1 +.ios_version_min 70000,1 +.macosx_version_min 99,2,257 +.macosx_version_min 50,256,1 +.macosx_version_min 10,-1,1 +.macosx_version_min 0,1,1 +.macosx_version_min 70000,1 + + +// CHECK: error: invalid OS update number +// CHECK: .ios_version_min 5,2,257 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .ios_version_min 5,256,1 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .ios_version_min 5,-1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .ios_version_min 0,1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .ios_version_min 70000,1 +// CHECK: ^ +// CHECK: error: invalid OS update number +// CHECK: .macosx_version_min 99,2,257 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .macosx_version_min 50,256,1 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .macosx_version_min 10,-1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .macosx_version_min 0,1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .macosx_version_min 70000,1 +// CHECK: ^ |