From ce5f07f33c5ee660709cc7a6bc5101f0e25da757 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 21 Jan 2014 20:39:11 +0000 Subject: Forgot to add testcase for r198590 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199765 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/COFF/bad-expr.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/MC/COFF/bad-expr.s (limited to 'test/MC/COFF/bad-expr.s') diff --git a/test/MC/COFF/bad-expr.s b/test/MC/COFF/bad-expr.s new file mode 100644 index 0000000000..ecbdd415c3 --- /dev/null +++ b/test/MC/COFF/bad-expr.s @@ -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 -- cgit v1.2.3