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