brintos

brintos / llvm-project-archived public Read only

0
0
Text · 353 B · 643b380 Raw
22 lines · plain
1// RUN: llvm-tblgen < %s2// XFAIL: vg_leak3// Test for template arguments that have the same name as superclass template4// arguments.5 6 7class Arg { int a; }8def TheArg : Arg { let a = 1; }9 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>;22