Home | History | Annotate | Download | only in MachO
      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
      4 
      5 .macro test_macro reg1, reg2
      6 mov $1, %eax
      7 mov $2, %eax
      8 .endmacro
      9 test_macro %ebx, %ecx
     10 
     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
     12 
     13 // CHECK-OUTPUT: movl	$1, %eax
     14 // CHECK-OUTPUT: movl	$2, %eax
     15