AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.
[oota-llvm.git] / test / MC / AsmParser / macros-gas.s
index 6c75363b5e3e82dbfbb3f18f00a4083f932004d1..d907a2517f8c3df4d6e7dcb9c3c246922af280e1 100644 (file)
@@ -91,3 +91,15 @@ test8 1,2 3
 
 // CHECK: .ascii "1,2,3"
 test8 1 2, 3
+
+.macro test10
+.ascii "$20"
+.endm
+
+test10
+// CHECK: .ascii "$20"
+
+test10 42
+// CHECK-ERRORS: 102:10: error: Wrong number of arguments
+// CHECK-ERRORS-NEXT: test10 42
+// CHECK-ERRORS-NEXT: ^