Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / TableGen / FieldAccess.td
blob8b4dc83e0a5bca8ed8e2cc8546e8a946bd976834
1 // RUN: tblgen %s
2 // XFAIL: vg_leak
4 class Bla<string t>
6   string blu = t;
9 class Bli<Bla t>
11   Bla bla = t;
14 def a : Bli<Bla<"">>;
15 def b : Bla<!cast<Bla>(a.bla).blu>; // works
16 def c : Bla<a.bla.blu>; // doesn't work: Cannot access field 'blu' of value 'a.bla'