llvm.org GIT mirror llvm / d80222a test / TableGen / FieldAccess.td
d80222a

Tree @d80222a (Download .tar.gz)

FieldAccess.td @d80222araw · history · blame

// RUN: llvm-tblgen %s
// XFAIL: vg_leak

class Bla<string t>
{
  string blu = t;
}

class Bli<Bla t>
{
  Bla bla = t;
}

def a : Bli<Bla<"">>;
def b : Bla<!cast<Bla>(a.bla).blu>; // works
def c : Bla<a.bla.blu>; // doesn't work: Cannot access field 'blu' of value 'a.bla'