xref: /aosp_15_r20/external/llvm/test/MC/MachO/bad-macro.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err > %t
2*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck --check-prefix=CHECK-OUTPUT < %t %s
3*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker.macro test_macro reg1, reg2
6*9880d681SAndroid Build Coastguard Workermov $1, %eax
7*9880d681SAndroid Build Coastguard Workermov $2, %eax
8*9880d681SAndroid Build Coastguard Worker.endmacro
9*9880d681SAndroid Build Coastguard Workertest_macro %ebx, %ecx
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker// 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*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker// CHECK-OUTPUT: movl	$1, %eax
14*9880d681SAndroid Build Coastguard Worker// CHECK-OUTPUT: movl	$2, %eax
15