[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / MachO / bad-macro.s
blob0aaba099e8535345d2e4f9f0c90c01a224b24275
1 // RUN: llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err > %t
2 // RUN: FileCheck --check-prefix=CHECK-OUTPUT < %t %s
3 // RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
5 .macro test_macro reg1, reg2
6 mov $1, %eax
7 mov $2, %eax
8 .endmacro
9 test_macro %ebx, %ecx
11 // CHECK-ERROR: 5:1: warning: macro defined with named parameters which are not used in macro body, possible positional parameter found in body which will have no effect
13 // CHECK-OUTPUT: movl $1, %eax
14 // CHECK-OUTPUT: movl $2, %eax