llvm-for-llvmta/test/TableGen/field-access-initializers.td

24 lines
324 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 A1 {
// CHECK: string value = ?;
// CHECK: }
// CHECK: def B1 {
// CHECK: string value = A1.value;
// CHECK: }
class A {
string value = ?;
}
class B<A impl> : A {
let value = impl.value;
}
def A1 : A;
def B1 : B<A1>;