summaryrefslogtreecommitdiff
path: root/test/MC/ELF/metadata-declaration-errors.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-01-06 21:34:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-01-06 21:34:26 +0000
commitd215fd3b74b90f5dc1964610926fcc2a20f959aa (patch)
tree0c9f21e40eae033d6760008729f37d2103e2c654 /test/MC/ELF/metadata-declaration-errors.s
parentb8a2042aa938069e862750553db0e4d82d25822c (diff)
Diffstat (limited to 'test/MC/ELF/metadata-declaration-errors.s')
-rw-r--r--test/MC/ELF/metadata-declaration-errors.s10
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 0000000000000..ed51a5f54f85f
--- /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