summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/macro-duplicate-params-names-err.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/macro-duplicate-params-names-err.s')
-rw-r--r--test/MC/AsmParser/macro-duplicate-params-names-err.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/AsmParser/macro-duplicate-params-names-err.s b/test/MC/AsmParser/macro-duplicate-params-names-err.s
new file mode 100644
index 000000000000..618cce02abdf
--- /dev/null
+++ b/test/MC/AsmParser/macro-duplicate-params-names-err.s
@@ -0,0 +1,7 @@
+// RUN: not llvm-mc %s 2> %t
+// RUN: FileCheck < %t %s
+
+.macro M a a
+.endm
+
+// CHECK: macro 'M' has multiple parameters named 'a'