blob: 643b380ca0055341d686f56ce5b768d50eaf0c91 [file] [log] [blame]
Peter Collingbourne5d5c0622011-10-06 13:39:59 +00001// RUN: llvm-tblgen < %s
Jeffrey Yasskin32989de2010-03-20 23:08:45 +00002// XFAIL: vg_leak
Chris Lattner7b6ee7d2004-02-28 16:43:44 +00003// Test for template arguments that have the same name as superclass template
4// arguments.
5
6
7class Arg { int a; }
Chris Lattnereb7d6d02004-02-28 17:33:21 +00008def TheArg : Arg { let a = 1; }
Chris Lattner7b6ee7d2004-02-28 16:43:44 +00009
10
11class Super<Arg F> {
12 int X = F.a;
13}
14class Sub<Arg F> : Super<F>;
15def inst : Sub<TheArg>;
16
17
18class Super2<int F> {
19 int X = F;
20}
21class Sub2<int F> : Super2<F>;