blob: 087df87124bfb9badcf73d00198de084dbab73ea [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: tblgen < %s
2// Test for template arguments that have the same name as superclass template
3// arguments.
4
5
6class Arg { int a; }
7def TheArg : Arg { let a = 1; }
8
9
10class Super<Arg F> {
11 int X = F.a;
12}
13class Sub<Arg F> : Super<F>;
14def inst : Sub<TheArg>;
15
16
17class Super2<int F> {
18 int X = F;
19}
20class Sub2<int F> : Super2<F>;