aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/diff2.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/diff2.s')
-rw-r--r--test/MC/ELF/diff2.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ELF/diff2.s b/test/MC/ELF/diff2.s
new file mode 100644
index 0000000..4a9fbd1
--- /dev/null
+++ b/test/MC/ELF/diff2.s
@@ -0,0 +1,13 @@
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s 2> %t
+// RUN: FileCheck -input-file %t %s
+
+.global zed
+ .data
+foo:
+ .text
+ nop
+bar:
+ nop
+zed:
+// CHECK: expected relocatable expression
+ mov zed+(bar-foo), %eax