1// RUN: llvm-tblgen %s | FileCheck %s 2// XFAIL: vg_leak 3 4class C<list<bits<4>> L> { 5 bits<2> V0 = L[0]{1-0}; 6 bits<2> V1 = L[1]{3-2}; 7 string V2 = !if(L[0]{0}, "Odd", "Even"); 8} 9 10def c0 : C<[0b0101, 0b1010]>; 11 12// CHECK: def c0 13// CHECK-NEXT: bits<2> V0 = { 0, 1 }; 14// CHECK-NEXT: bits<2> V1 = { 1, 0 }; 15// CHECK-NEXT: string V2 = "Odd"; 16