[llvm-commits] [llvm] r129323 - /llvm/trunk/test/MC/AsmParser/exprs-invalid.s

Eric Christopher echristo at apple.com
Mon Apr 11 17:03:38 PDT 2011


Author: echristo
Date: Mon Apr 11 19:03:38 2011
New Revision: 129323

URL: http://llvm.org/viewvc/llvm-project?rev=129323&view=rev
Log:
Test for invalid constant expr addition - bad octal constant.

Modified:
    llvm/trunk/test/MC/AsmParser/exprs-invalid.s

Modified: llvm/trunk/test/MC/AsmParser/exprs-invalid.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/exprs-invalid.s?rev=129323&r1=129322&r2=129323&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/exprs-invalid.s (original)
+++ llvm/trunk/test/MC/AsmParser/exprs-invalid.s Mon Apr 11 19:03:38 2011
@@ -1,13 +1,5 @@
-// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t
-// RUN: FileCheck -input-file %t %s
-
-// Currently XFAIL'ed, since the front-end isn't validating this. Figure out the
-// right resolution.
-//
-// XFAIL: *
-
-        .text
-a:
-        .data
-// CHECK: expected relocatable expression
-        .long -(0 + a)
+// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err | FileCheck %s
+// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
+// CHECK: 	.section	__TEXT,__text,regular,pure_instructions
+// CHECK-ERRORS: error: Invalid octal number
+.long 80+08





More information about the llvm-commits mailing list