summaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/macro-def-in-instantiation.s
blob: 773df701aab4b8f7097fd2d4906065a33b409ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// RUN: llvm-mc -triple x86_64-apple-darwin10 %s | FileCheck %s

.macro .make_macro
$0 $1
$2 $3
$4
.endmacro

.make_macro .macro,.mybyte,.byte,$0,.endmacro

.data
// CHECK: .byte 10
.mybyte 10

// PR18599
.macro macro_a

.macro macro_b
.byte 10
.macro macro_c
.endm

macro_c
.purgem macro_c
.endm

macro_b
.endm

macro_a
macro_b
// CHECK: .byte 10
// CHECK: .byte 10