summaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/macro-def-in-instantiation.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/macro-def-in-instantiation.s')
-rw-r--r--test/MC/AsmParser/macro-def-in-instantiation.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/MC/AsmParser/macro-def-in-instantiation.s b/test/MC/AsmParser/macro-def-in-instantiation.s
index b6483b3..773df70 100644
--- a/test/MC/AsmParser/macro-def-in-instantiation.s
+++ b/test/MC/AsmParser/macro-def-in-instantiation.s
@@ -11,3 +11,23 @@ $4
.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