[llvm-commits] [parallel] CVS: llvm/test/Regression/TableGen/SuperSubclassSameName.td
Misha Brukman
brukman at cs.uiuc.edu
Mon Mar 1 19:23:08 PST 2004
Changes in directory llvm/test/Regression/TableGen:
SuperSubclassSameName.td added (r1.2.2.1)
---
Log message:
Merge from trunk
---
Diffs of the changes: (+20 -0)
Index: llvm/test/Regression/TableGen/SuperSubclassSameName.td
diff -c /dev/null llvm/test/Regression/TableGen/SuperSubclassSameName.td:1.2.2.1
*** /dev/null Mon Mar 1 17:59:24 2004
--- llvm/test/Regression/TableGen/SuperSubclassSameName.td Mon Mar 1 17:59:14 2004
***************
*** 0 ****
--- 1,20 ----
+ // RUN: tblgen < %s
+ // Test for template arguments that have the same name as superclass template
+ // arguments.
+
+
+ class Arg { int a; }
+ def 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