[llvm] r199765 - Forgot to add testcase for r198590

David Majnemer david.majnemer at gmail.com
Tue Jan 21 12:39:11 PST 2014


Author: majnemer
Date: Tue Jan 21 14:39:11 2014
New Revision: 199765

URL: http://llvm.org/viewvc/llvm-project?rev=199765&view=rev
Log:
Forgot to add testcase for r198590

Added:
    llvm/trunk/test/MC/COFF/bad-expr.s
    llvm/trunk/test/MC/ELF/bad-expr.s

Added: llvm/trunk/test/MC/COFF/bad-expr.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/bad-expr.s?rev=199765&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/bad-expr.s (added)
+++ llvm/trunk/test/MC/COFF/bad-expr.s Tue Jan 21 14:39:11 2014
@@ -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

Added: llvm/trunk/test/MC/ELF/bad-expr.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/bad-expr.s?rev=199765&view=auto
==============================================================================
--- llvm/trunk/test/MC/ELF/bad-expr.s (added)
+++ llvm/trunk/test/MC/ELF/bad-expr.s Tue Jan 21 14:39:11 2014
@@ -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





More information about the llvm-commits mailing list