1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Regression/TableGen/SuperSubclassSameName.td
Chris Lattner 243e1df469 fix a bug in the testcase
llvm-svn: 11949
2004-02-28 17:33:21 +00:00

21 lines
330 B
TableGen

// 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>;