summaryrefslogtreecommitdiff
path: root/test/MC/ELF/metadata-declaration-errors.s
diff options
context:
space:
mode:
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 000000000000..ed51a5f54f85
--- /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