1 // RUN
: llvm-mc
-triple x86_64-unknown-unknown
-asm-macro-max-nesting-depth
=42 %s | FileCheck
%s
-check-prefix
=CHECK_PASS
2 // RUN
: not llvm-mc
-triple x86_64-unknown-unknown
%s
2> %t
3 // RUN
: FileCheck
-check-prefix
=CHECK_FAIL
< %t %s
5 .macro rec head, tail:vararg
13 .macro amplify macro, args:vararg
14 \macro
\args
\args
\args
\args
17 amplify rec
0 0 0 0 0 0 0 0 0 0
19 // CHECK_PASS
: .long 42
20 // CHECK_FAIL
: error
: macros cannot
be nested more than
{{[0-9]+}} levels deep. Use
-asm-macro-max-nesting-depth to increase this limit.