diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-12-31 07:41:02 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-12-31 07:41:02 +0000 |
commit | 0af58659f349c10e6752d769b65fa74e0bb2ab4e (patch) | |
tree | dcc4d33f9316b4d443aeab80e1151662ff4ec754 /test/MC | |
parent | 671e8a06dc2756a94967e5862e48e034e39edf1a (diff) |
[MC] - Stop ignoring invalid meta data symbols.
Previously llvm-mc would silently accept code from testcase,
that contains invalid metadata symbol in section declaration.
Patch fixes the issue.
Differential revision: https://reviews.llvm.org/D41641
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ELF/metadata-declaration-errors.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ELF/metadata-declaration-errors.s b/test/MC/ELF/metadata-declaration-errors.s new file mode 100644 index 00000000000..ed51a5f54f8 --- /dev/null +++ b/test/MC/ELF/metadata-declaration-errors.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple x86_64-pc-linux-gnu %s \ +// RUN: -filetype=obj -o %t.o 2>&1 | FileCheck %s + +// Check we do not silently ignore invalid metadata symbol (123). +// CHECK: error: invalid metadata symbol + +.section .foo,"a" +.quad 0 + +.section bar,"ao",@progbits,123 |