aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ELF/section-metadata-err3.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/section-metadata-err3.s')
-rw-r--r--test/MC/ELF/section-metadata-err3.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/ELF/section-metadata-err3.s b/test/MC/ELF/section-metadata-err3.s
new file mode 100644
index 000000000000..388ca377fd42
--- /dev/null
+++ b/test/MC/ELF/section-metadata-err3.s
@@ -0,0 +1,6 @@
+// RUN: not llvm-mc -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
+
+// CHECK: error: symbol is not in a section: foo
+
+ foo = 42
+ .section .shf_metadata,"ao",@progbits,foo