brintos

brintos / llvm-project-archived public Read only

0
0
Text · 497 B · 0aaba09 Raw
15 lines · plain
1// RUN: llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err > %t2// RUN: FileCheck --check-prefix=CHECK-OUTPUT < %t %s3// RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s4 5.macro test_macro reg1, reg26mov $1, %eax7mov $2, %eax8.endmacro9test_macro %ebx, %ecx10 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 effect12 13// CHECK-OUTPUT: movl	$1, %eax14// CHECK-OUTPUT: movl	$2, %eax15