mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
6c753fab28
* Add locations * Use FileCheck --match-full-lines --strict-whitespace * Use CHECK-NEXT: * Merge related tests * Delete redundant tests * Improve test coverage Differential Revision: https://reviews.llvm.org/D77981
31 lines
843 B
ArmAsm
31 lines
843 B
ArmAsm
# RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s --match-full-lines --strict-whitespace
|
|
# RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -o /dev/null 2>&1 | FileCheck %s --match-full-lines --strict-whitespace
|
|
|
|
.macro .test0
|
|
.endmacro
|
|
|
|
.macros_off
|
|
# CHECK:{{.*}}.s:[[#@LINE+3]]:1: error: unknown directive
|
|
# CHECK-NEXT:.test0
|
|
# CHECK-NEXT:^
|
|
.test0
|
|
.macros_on
|
|
|
|
.test0
|
|
|
|
# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:1: error: macro '.test0' is already defined
|
|
# CHECK-NEXT:.macro .test0
|
|
# CHECK-NEXT:^
|
|
.macro .test0
|
|
.endmacro
|
|
|
|
# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:10: error: unexpected '.endmacro' in file, no current macro definition
|
|
# CHECK-NEXT:.endmacro
|
|
# CHECK-NEXT: ^
|
|
.endmacro
|
|
|
|
# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:1: error: no matching '.endmacro' in definition
|
|
# CHECK-NEXT:.macro dummy
|
|
# CHECK-NEXT:^
|
|
.macro dummy
|