new testcase for a tblgen bug that alkis ran into
authorChris Lattner <sabre@nondot.org>
Sat, 28 Feb 2004 16:43:44 +0000 (16:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Feb 2004 16:43:44 +0000 (16:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11947 91177308-0d34-0410-b5e6-96231b3b80d8

test/TableGen/SuperSubclassSameName.td [new file with mode: 0644]

diff --git a/test/TableGen/SuperSubclassSameName.td b/test/TableGen/SuperSubclassSameName.td
new file mode 100644 (file)
index 0000000..ded84de
--- /dev/null
@@ -0,0 +1,20 @@
+// RUN: tblgen < %s
+// Test for template arguments that have the same name as superclass template
+// arguments.
+
+
+class Arg { int a; }
+class TheArg : Arg { let a = 1; }
+
+
+class Super<Arg F> {
+  int X = F.a;
+}
+class Sub<Arg F> : Super<F>;
+def inst : Sub<TheArg>;
+
+
+class Super2<int F> {
+  int X = F;
+}
+class Sub2<int F> : Super2<F>;