summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ELF/undefined-directional.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/ELF/undefined-directional.s')
-rw-r--r--llvm/test/MC/ELF/undefined-directional.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/undefined-directional.s b/llvm/test/MC/ELF/undefined-directional.s
new file mode 100644
index 00000000000..74449d4e4f6
--- /dev/null
+++ b/llvm/test/MC/ELF/undefined-directional.s
@@ -0,0 +1,9 @@
+// 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
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined
+ jmp 2f
+
OpenPOWER on IntegriCloud