https://github.com/epiqc/ScaffCC
Raw File
Tip revision: 861c8b60980b0f4d36b101b45346a2e64b0fa390 authored by Pranav Gokhale on 05 February 2018, 05:29:11 UTC
update documentation and release notes
Tip revision: 861c8b6
SuperSubclassSameName.td
// RUN: llvm-tblgen < %s
// XFAIL: vg_leak
// Test for template arguments that have the same name as superclass template
// arguments.


class Arg { int a; }
def TheArg : Arg { let a = 1; }


class Super<Arg F> {
  int X = F.a;
}
class Sub<Arg F> : Super<F>;
def inst : Sub<TheArg>;


class Super2<int F> {
  int X = F;
}
class Sub2<int F> : Super2<F>;
back to top