rename add some comments.
authorChris Lattner <sabre@nondot.org>
Wed, 6 Oct 2010 04:37:17 +0000 (04:37 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 6 Oct 2010 04:37:17 +0000 (04:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115741 91177308-0d34-0410-b5e6-96231b3b80d8

test/TableGen/Dag.td [new file with mode: 0644]
test/TableGen/DagIntSubst.td [deleted file]

diff --git a/test/TableGen/Dag.td b/test/TableGen/Dag.td
new file mode 100644 (file)
index 0000000..8b406a5
--- /dev/null
@@ -0,0 +1,35 @@
+// RUN: tblgen %s | FileCheck %s
+// XFAIL: vg_leak
+
+//===----------------------------------------------------------------------===//
+// Substitution of an int.
+def X1;
+
+class C1<int N> {
+  dag d = (X1 N);
+}
+
+def VAL1 : C1<13>;
+
+// CHECK: def VAL1 {
+// CHECK-NEXT: dag d = (X1 13)
+
+
+//===----------------------------------------------------------------------===//
+// Substitution of a DAG.
+def X2;
+
+class yclass;
+def Y2 : yclass;
+
+class C2<yclass N> {
+  dag d = (X2 N);
+  dag e = (N X2);
+}
+
+def VAL2 : C2<Y2>;
+
+// CHECK: def VAL2 {
+// CHECK-NEXT: dag d = (X2 Y2)
+// CHECK-NEXT: dag e = (Y2 X2)
+
diff --git a/test/TableGen/DagIntSubst.td b/test/TableGen/DagIntSubst.td
deleted file mode 100644 (file)
index 676f0b0..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// RUN: tblgen %s | FileCheck %s
-// XFAIL: vg_leak
-def X1;
-
-class C1<int N> {
-  dag d = (X1 N);
-}
-
-def VAL1 : C1<13>;
-
-// CHECK: def VAL1 {
-// CHECK-NEXT: dag d = (X1 13)
-
-
-def X2;
-
-class yclass;
-def Y2 : yclass;
-
-class C2<yclass N> {
-  dag d = (X2 N);
-  dag e = (N X2);
-}
-
-def VAL2 : C2<Y2>;
-
-// CHECK: def VAL2 {
-// CHECK-NEXT: dag d = (X2 Y2)
-// CHECK-NEXT: dag e = (Y2 X2)
-