blob: 159dd36bdabb9d1e0ff698a9177e6cebcfcc2f3f [file] [log] [blame]
Daniel Dunbar7a570d02010-07-18 19:00:10 +00001// RUN: llvm-mc %s 2> %t.err | FileCheck %s
2// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
3
4.macro .test0
5.macrobody0
6.endmacro
7.macro .test1
8.test0
9.endmacro
10
11.test1
12// CHECK-ERRORS: <instantiation>:1:1: warning: ignoring directive for now
13// CHECK-ERRORS-NEXT: macrobody0
14// CHECK-ERRORS-NEXT: ^
15// CHECK-ERRORS: <instantiation>:1:1: note: while in macro instantiation
16// CHECK-ERRORS-NEXT: .test0
17// CHECK-ERRORS-NEXT: ^
18// CHECK-ERRORS: 11:1: note: while in macro instantiation
19// CHECK-ERRORS-NEXT: .test1
20// CHECK-ERRORS-NEXT: ^
21
22.macro test2
23.byte $0
24.endmacro
25test2 10
26
27.macro test3
28.globl "$0 $1 $2 $$3 $n"
29.endmacro
30
31// CHECK: .globl "1 23 $3 2"
32test3 1,2 3