blob: d69caae8a6fbda622c9a41232b6c7757e5b7870e [file] [log] [blame]
Peter Collingbourne5d5c0622011-10-06 13:39:59 +00001// RUN: llvm-tblgen %s
Daniel Dunbar874f0212010-09-09 15:50:19 +00002// XFAIL: vg_leak
3
David Greene97038432010-09-03 21:00:49 +00004class Bla<string t>
5{
6 string blu = t;
7}
8
9class Bli<Bla t>
10{
11 Bla bla = t;
12}
13
14def a : Bli<Bla<"">>;
15def b : Bla<!cast<Bla>(a.bla).blu>; // works
16def c : Bla<a.bla.blu>; // doesn't work: Cannot access field 'blu' of value 'a.bla'