aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ELF/undefined-directional.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/undefined-directional.s')
-rw-r--r--test/MC/ELF/undefined-directional.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/ELF/undefined-directional.s b/test/MC/ELF/undefined-directional.s
new file mode 100644
index 000000000000..e09acd731112
--- /dev/null
+++ b/test/MC/ELF/undefined-directional.s
@@ -0,0 +1,12 @@
+// RUN: not llvm-mc -triple x86_64-linux-gnu -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
+
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined
+ jmp 1b
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined
+ jmp 1f
+# 10 "wibble.s"
+// CHECK: wibble.s:11:{{[0-9]+}}: error: directional label undefined
+ jmp 2f
+
+# 42 "invalid.s"
+