1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Forgot to add testcase for r198590

llvm-svn: 199765
This commit is contained in:
David Majnemer 2014-01-21 20:39:11 +00:00
parent ca5b9beeb1
commit 4537541170
2 changed files with 15 additions and 0 deletions

7
test/MC/COFF/bad-expr.s Normal file
View File

@ -0,0 +1,7 @@
// RUN: not llvm-mc -filetype=obj -triple i386-pc-win32 %s 2>&1 | FileCheck %s
// CHECK: symbol '__ImageBase' can not be undefined in a subtraction expression
.data
_x:
.long _x-__ImageBase

8
test/MC/ELF/bad-expr.s Normal file
View File

@ -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