diff options
-rw-r--r-- | llvm/test/MC/ARM/directive-type-diagnostics.s | 10 | ||||
-rw-r--r-- | llvm/test/MC/COFF/ARM/directive-type-diagnostics.s | 10 | ||||
-rw-r--r-- | llvm/test/MC/COFF/ARM/lit.local.cfg | 3 | ||||
-rw-r--r-- | llvm/test/MC/MachO/ARM/directive-type-diagnostics.s | 10 |
4 files changed, 33 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/directive-type-diagnostics.s b/llvm/test/MC/ARM/directive-type-diagnostics.s new file mode 100644 index 00000000000..b166ffd06aa --- /dev/null +++ b/llvm/test/MC/ARM/directive-type-diagnostics.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple armeb-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumb-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumbeb-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type symbol 32 +// CHECK: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>" +// CHECK: .type symbol 32 +// CHECK: ^ + diff --git a/llvm/test/MC/COFF/ARM/directive-type-diagnostics.s b/llvm/test/MC/COFF/ARM/directive-type-diagnostics.s new file mode 100644 index 00000000000..f8a52cd43e4 --- /dev/null +++ b/llvm/test/MC/COFF/ARM/directive-type-diagnostics.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple arm-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple armeb-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumb-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumbeb-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type symbol 32 +// CHECK: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>" +// CHECK: .type symbol 32 +// CHECK: ^ + diff --git a/llvm/test/MC/COFF/ARM/lit.local.cfg b/llvm/test/MC/COFF/ARM/lit.local.cfg new file mode 100644 index 00000000000..98c6700c209 --- /dev/null +++ b/llvm/test/MC/COFF/ARM/lit.local.cfg @@ -0,0 +1,3 @@ +if not 'ARM' in config.root.targets: + config.unsupported = True + diff --git a/llvm/test/MC/MachO/ARM/directive-type-diagnostics.s b/llvm/test/MC/MachO/ARM/directive-type-diagnostics.s new file mode 100644 index 00000000000..f5f9b45b664 --- /dev/null +++ b/llvm/test/MC/MachO/ARM/directive-type-diagnostics.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple arm-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple armeb-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumb-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumbeb-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type symbol 32 +// CHECK: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>" +// CHECK: .type symbol 32 +// CHECK: ^ + |