llvm-for-llvmta/test/TableGen/FieldAccess.td

31 lines
423 B
TableGen
Raw Normal View History

2022-04-25 10:02:23 +02:00
// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak
// CHECK: --- Defs ---
// CHECK: def a {
// CHECK: string blu = "";
// CHECK: }
// CHECK: def b {
// CHECK: string blu = "";
// CHECK: }
// CHECK: def c {
// CHECK: string blu = "";
// CHECK: }
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>;
def c : Bla<a.bla.blu>;