Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AsmParser / macros-off.s
blob5a43a5da926c6eb87faacc0b5c92ad319223bad7
1 # RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s --match-full-lines --strict-whitespace
2 # RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -o /dev/null 2>&1 | FileCheck %s --match-full-lines --strict-whitespace
4 .macro .test0
5 .endmacro
7 .macros_off
8 # CHECK:{{.*}}.s:[[#@LINE+3]]:1: error: unknown directive
9 # CHECK-NEXT:.test0
10 # CHECK-NEXT:^
11 .test0
12 .macros_on
14 .test0
16 # CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:1: error: macro '.test0' is already defined
17 # CHECK-NEXT:.macro .test0
18 # CHECK-NEXT:^
19 .macro .test0
20 .endmacro
22 # CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:10: error: unexpected '.endmacro' in file, no current macro definition
23 # CHECK-NEXT:.endmacro
24 # CHECK-NEXT: ^
25 .endmacro
27 # CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:1: error: no matching '.endmacro' in definition
28 # CHECK-NEXT:.macro dummy
29 # CHECK-NEXT:^
30 .macro dummy