diff options
Diffstat (limited to 'test/MC/ELF/gnu-type-diagnostics.s')
-rw-r--r-- | test/MC/ELF/gnu-type-diagnostics.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/ELF/gnu-type-diagnostics.s b/test/MC/ELF/gnu-type-diagnostics.s new file mode 100644 index 0000000..df87d6d --- /dev/null +++ b/test/MC/ELF/gnu-type-diagnostics.s @@ -0,0 +1,18 @@ +// RUN: not llvm-mc -triple i686-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type TYPE FUNC +// CHECK: error: unsupported attribute in '.type' directive +// CHECK: .type TYPE FUNC +// CHECK: ^ + + .type type stt_func +// CHECK: error: unsupported attribute in '.type' directive +// CHECK: .type type stt_func +// CHECK: ^ + + .type symbol 32 +// CHECK: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '@<type>', '%<type>' or "<type>" +// CHECK: .type symbol 32 +// CHECK: ^ + + |