1// RUN: llvm-tblgen %s | FileCheck %s
2// XFAIL: vg_leak
3
4// CHECK: --- Defs ---
5
6// CHECK: def a {
7// CHECK:   string blu = "";
8// CHECK: }
9
10// CHECK: def b {
11// CHECK:   string blu = "";
12// CHECK: }
13
14// CHECK: def c {
15// CHECK:   string blu = "";
16// CHECK: }
17
18class Bla<string t>
19{
20  string blu = t;
21}
22
23class Bli<Bla t>
24{
25  Bla bla = t;
26}
27
28def a : Bli<Bla<"">>;
29def b : Bla<!cast<Bla>(a.bla).blu>;
30def c : Bla<a.bla.blu>;
31