llvm-for-llvmta/test/TableGen/FieldAccess.td
Nils Hölscher 3500bf8dde first commit
2022-04-25 10:02:23 +02:00

31 lines
423 B
TableGen

// 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>;