Skip to content

Commit 8340592

Browse files
committed
Forgot to add testcase for r198590
llvm-svn: 199765
1 parent b9a5f2d commit 8340592

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

llvm/test/MC/COFF/bad-expr.s

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// RUN: not llvm-mc -filetype=obj -triple i386-pc-win32 %s 2>&1 | FileCheck %s
2+
3+
// CHECK: symbol '__ImageBase' can not be undefined in a subtraction expression
4+
5+
.data
6+
_x:
7+
.long _x-__ImageBase

llvm/test/MC/ELF/bad-expr.s

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
2+
// RUN: FileCheck --input-file=%t %s
3+
4+
// CHECK: symbol '__executable_start' can not be undefined in a subtraction expression
5+
6+
.data
7+
x:
8+
.quad x-__executable_start

0 commit comments

Comments
 (0)