aboutsummaryrefslogtreecommitdiffstats
path: root/test/TableGen/defmclass.td
diff options
context:
space:
mode:
Diffstat (limited to 'test/TableGen/defmclass.td')
-rw-r--r--test/TableGen/defmclass.td12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/TableGen/defmclass.td b/test/TableGen/defmclass.td
index 55482da..57972b6 100644
--- a/test/TableGen/defmclass.td
+++ b/test/TableGen/defmclass.td
@@ -36,3 +36,15 @@ multiclass Y {
// CHECK: int check = 0;
defm Instr : Y, VEX;
+
+
+// Anonymous defm.
+
+multiclass SomeAnonymous<int x> {
+ def rm;
+ def mr;
+}
+
+// These multiclasses shouldn't conflict.
+defm : SomeAnonymous<1>;
+defm : SomeAnonymous<2>; \ No newline at end of file