23 lines · plain
1// RUN: llvm-tblgen %s | FileCheck %s2// XFAIL: vg_leak3 4// Check that !cond works with an empty list value.5 6class C<bit cond> {7 bit True = 1;8 list<int> X = !cond(cond: [1, 2, 3], True : []);9 list<int> Y = !cond(cond: [], True : [4, 5, 6]);10}11 12// CHECK: def rec113// CHECK: X = [];14// CHECK: Y = [4, 5, 6];15 16def rec1 : C<0>;17 18// CHECK: def rec219// CHECK: X = [1, 2, 3];20// CHECK: Y = [];21 22def rec2 : C<1>;23