blob: 087df87124bfb9badcf73d00198de084dbab73ea [file] [log] [blame]
Chris Lattner7b6ee7d2004-02-28 16:43:44 +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; }
Chris Lattnereb7d6d02004-02-28 17:33:21 +00007def TheArg : Arg { let a = 1; }
Chris Lattner7b6ee7d2004-02-28 16:43:44 +00008
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>;