Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AsmParser / macro-vararg-err.s
blob8561c69a1fa9d37cd6e90a92f841970a0011ac9d
1 # RUN: not llvm-mc -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --match-full-lines --strict-whitespace
3 # CHECK:{{.*}}.s:[[#@LINE+3]]:21: error: vararg parameter 'a' should be the last parameter
4 # CHECK-NEXT:.macro two a:vararg b:vararg
5 # CHECK-NEXT: ^
6 .macro two a:vararg b:vararg
8 # CHECK:{{.*}}.s:[[#@LINE+3]]:17: error: expected identifier in '.macro' directive
9 # CHECK-NEXT:.macro one a:req:vararg
10 # CHECK-NEXT: ^
11 .macro one a:req:vararg
13 # CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:32: warning: pointless default value for required parameter 'a' in macro 'pointless_default'
14 # CHECK-NEXT:.macro pointless_default a:req=default
15 # CHECK-NEXT: ^
16 .macro pointless_default a:req=default
17 .endm