summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/exprs-invalid.s
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-12 00:03:38 +0000
committerEric Christopher <echristo@apple.com>2011-04-12 00:03:38 +0000
commit164254d77c36a2f224987406d66f3bacfdbb7652 (patch)
tree6ca01952acaf9a8f5b980a23ae12c01806903024 /test/MC/AsmParser/exprs-invalid.s
parentf3755b2d0e7aa8e849f6ec6f95584cadb1412135 (diff)
downloadllvm-164254d77c36a2f224987406d66f3bacfdbb7652.tar.gz
llvm-164254d77c36a2f224987406d66f3bacfdbb7652.tar.bz2
llvm-164254d77c36a2f224987406d66f3bacfdbb7652.tar.xz
Test for invalid constant expr addition - bad octal constant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser/exprs-invalid.s')
-rw-r--r--test/MC/AsmParser/exprs-invalid.s18
1 files changed, 5 insertions, 13 deletions
diff --git a/test/MC/AsmParser/exprs-invalid.s b/test/MC/AsmParser/exprs-invalid.s
index 5358fc5d75..5baa9dd4c3 100644
--- a/test/MC/AsmParser/exprs-invalid.s
+++ b/test/MC/AsmParser/exprs-invalid.s
@@ -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