[llvm-commits] CVS: llvm/test/Regression/TableGen/SuperSubclassSameName.td
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 28 10:44:04 PST 2004
Changes in directory llvm/test/Regression/TableGen:
SuperSubclassSameName.td added (r1.1)
---
Log message:
new testcase for a tblgen bug that alkis ran into
---
Diffs of the changes: (+20 -0)
Index: llvm/test/Regression/TableGen/SuperSubclassSameName.td
diff -c /dev/null llvm/test/Regression/TableGen/SuperSubclassSameName.td:1.1
*** /dev/null Sat Feb 28 10:43:55 2004
--- llvm/test/Regression/TableGen/SuperSubclassSameName.td Sat Feb 28 10:43:44 2004
***************
*** 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>;
More information about the llvm-commits
mailing list