| Chris Lattner | 7b6ee7d | 2004-02-28 16:43:44 +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 | class 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>; | ||||