1# RUN: llvm-mc -triple=x86_64 %s | FileCheck %s
2# RUN: llvm-mc -triple=x86_64-apple-darwin10 %s | FileCheck %s
3
4.macro make_macro a, b, c ,d ,e, f
5\a \b \c
6\d \e
7\f
8.endm
9make_macro .macro,mybyte,a,.byte,\a,.endm
10# CHECK: .byte 42
11mybyte 42
12
13# PR18599
14.macro macro_a
15 .macro macro_b
16  .byte 10
17  .macro macro_c
18  .endm
19
20  macro_c
21  .purgem macro_c
22 .endm
23
24 macro_b
25.endm
26
27# CHECK: .byte 10
28# CHECK: .byte 10
29macro_a
30macro_b
31