summaryrefslogtreecommitdiff
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.s6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/MC/ELF/bad-expr.s b/test/MC/ELF/bad-expr.s
index 1cad919fee3c2..59809700d4a11 100644
--- a/test/MC/ELF/bad-expr.s
+++ b/test/MC/ELF/bad-expr.s
@@ -1,8 +1,12 @@
// 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:
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: symbol '__executable_start' can not be undefined in a subtraction expression
.quad x-__executable_start
+
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: unsupported subtraction of qualified symbol
+ .long bar - foo@got
+foo: