summaryrefslogtreecommitdiff
path: root/test/MC/ELF/bad-relocation.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/bad-relocation.s')
-rw-r--r--test/MC/ELF/bad-relocation.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ELF/bad-relocation.s b/test/MC/ELF/bad-relocation.s
new file mode 100644
index 0000000000..1a66744ec8
--- /dev/null
+++ b/test/MC/ELF/bad-relocation.s
@@ -0,0 +1,7 @@
+// RUN: not llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o /dev/null 2>&1 | FileCheck %s
+
+// CHECK: error: invalid variant 'BADRELOC'
+
+ .text
+foo:
+ leal .Lfoo@BADRELOC(%ebx), %eax