aboutsummaryrefslogtreecommitdiffstats
path: root/test/TableGen/FieldAccess.td
blob: 8b4dc83e0a5bca8ed8e2cc8546e8a946bd976834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: 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'