summaryrefslogtreecommitdiffstats
path: root/test/TableGen/DagDefSubst.td
diff options
context:
space:
mode:
Diffstat (limited to 'test/TableGen/DagDefSubst.td')
-rw-r--r--test/TableGen/DagDefSubst.td15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/TableGen/DagDefSubst.td b/test/TableGen/DagDefSubst.td
new file mode 100644
index 0000000..e5eebe9
--- /dev/null
+++ b/test/TableGen/DagDefSubst.td
@@ -0,0 +1,15 @@
+// RUN: tblgen %s | grep {dag d = (X Y)}
+// RUN: tblgen %s | grep {dag e = (Y X)}
+def X;
+
+class yclass;
+def Y : yclass;
+
+class C<yclass N> {
+ dag d = (X N);
+ dag e = (N X);
+}
+
+def VAL : C<Y>;
+
+