summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/COFF/cross-section-relative-err.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/COFF/cross-section-relative-err.s')
-rw-r--r--llvm/test/MC/COFF/cross-section-relative-err.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/MC/COFF/cross-section-relative-err.s b/llvm/test/MC/COFF/cross-section-relative-err.s
new file mode 100644
index 00000000000..e237f60e9a3
--- /dev/null
+++ b/llvm/test/MC/COFF/cross-section-relative-err.s
@@ -0,0 +1,12 @@
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o /dev/null 2>&1 | FileCheck %s
+
+
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: Cannot represent this expression
+ .byte foo - .
+
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: Cannot represent this expression
+ .short foo - .
+
+// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: Cannot represent this expression
+ .quad foo - .
+
OpenPOWER on IntegriCloud