aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/bad-expr.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/bad-expr.s')
-rw-r--r--test/MC/ELF/bad-expr.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/ELF/bad-expr.s b/test/MC/ELF/bad-expr.s
new file mode 100644
index 0000000..1cad919
--- /dev/null
+++ b/test/MC/ELF/bad-expr.s
@@ -0,0 +1,8 @@
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
+// RUN: FileCheck --input-file=%t %s
+
+// CHECK: symbol '__executable_start' can not be undefined in a subtraction expression
+
+ .data
+x:
+ .quad x-__executable_start