SuperSubclassSameName.td 353 B

123456789101112131415161718192021
  1. // RUN: llvm-tblgen < %s
  2. // XFAIL: vg_leak
  3. // Test for template arguments that have the same name as superclass template
  4. // arguments.
  5. class Arg { int a; }
  6. def TheArg : Arg { let a = 1; }
  7. class Super<Arg F> {
  8. int X = F.a;
  9. }
  10. class Sub<Arg F> : Super<F>;
  11. def inst : Sub<TheArg>;
  12. class Super2<int F> {
  13. int X = F;
  14. }
  15. class Sub2<int F> : Super2<F>;