1 // RUN: llvm-tblgen %s 2 // XFAIL: vg_leak 3 4 class Bla<string t> 5 { 6 string blu = t; 7 } 8 9 class Bli<Bla t> 10 { 11 Bla bla = t; 12 } 13 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' 17