AsmParser: Parse (and ignore) nested .macro definitions.
[oota-llvm.git] / test / MC / AsmParser / macro-def-in-instantiation.s
index b6483b3b32b2cc662f2978f8c8b94be4c7d2efe0..773df701aab4b8f7097fd2d4906065a33b409ea6 100644 (file)
@@ -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