1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/TableGen/field-access-initializers.td
Daniel Sanders aee565e2c3 [TableGen] Resolve concrete but not complete field access initializers
This fixes the resolution of Rec10.Zero in ListSlices.td.

As part of this, correct the definition of complete for ListInit such that
it's complete iff all the elements in the list are complete rather than
always being complete regardless of the elements. This is the reason
Rec10.TwoFive from ListSlices.td previously resolved despite being
incomplete like Rec10.Zero was

Depends on D100247

Reviewed By: Paul-C-Anagnostopoulos

Differential Revision: https://reviews.llvm.org/D100253
2021-04-13 15:14:56 -07:00

28 lines
405 B
TableGen

// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak
// CHECK: class B<A B:impl = ?> {
// CHECK: string value = B:impl.value;
// CHECK: }
// CHECK: --- Defs ---
// CHECK: def A1 {
// CHECK: string value = ?;
// CHECK: }
// CHECK: def B1 {
// CHECK: string value = ?;
// CHECK: }
class A {
string value = ?;
}
class B<A impl> : A {
let value = impl.value;
}
def A1 : A;
def B1 : B<A1>;