1// RUN: llvm-tblgen %s | FileCheck %s 2// XFAIL: vg_leak 3 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 rec1 13// CHECK: X = []; 14// CHECK: Y = [4, 5, 6]; 15 16def rec1 : C<0>; 17 18// CHECK: def rec2 19// CHECK: X = [1, 2, 3]; 20// CHECK: Y = []; 21 22def rec2 : C<1>; 23