2011-10-06 21:39:59 +08:00
|
|
|
// RUN: llvm-tblgen < %s
|
2010-03-21 07:08:45 +08:00
|
|
|
// XFAIL: vg_leak
|
2004-02-29 00:43:44 +08:00
|
|
|
// Test for template arguments that have the same name as superclass template
|
|
|
|
// arguments.
|
|
|
|
|
|
|
|
|
|
|
|
class Arg { int a; }
|
2004-02-29 01:33:21 +08:00
|
|
|
def TheArg : Arg { let a = 1; }
|
2004-02-29 00:43:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
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>;
|