diff options
author | Eric Christopher <echristo@apple.com> | 2011-04-12 00:03:38 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-04-12 00:03:38 +0000 |
commit | 164254d77c36a2f224987406d66f3bacfdbb7652 (patch) | |
tree | 6ca01952acaf9a8f5b980a23ae12c01806903024 | |
parent | f3755b2d0e7aa8e849f6ec6f95584cadb1412135 (diff) | |
download | external_llvm-164254d77c36a2f224987406d66f3bacfdbb7652.zip external_llvm-164254d77c36a2f224987406d66f3bacfdbb7652.tar.gz external_llvm-164254d77c36a2f224987406d66f3bacfdbb7652.tar.bz2 |
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
-rw-r--r-- | test/MC/AsmParser/exprs-invalid.s | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/test/MC/AsmParser/exprs-invalid.s b/test/MC/AsmParser/exprs-invalid.s index 5358fc5..5baa9dd 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 |