llvm-project/llvm/test/TableGen/ifbit.td

12 lines
157 B
TableGen

// RUN: tblgen %s | FileCheck %s
// XFAIL: vg_leak
// CHECK: a = 6
// CHECK: a = 5
class A<bit b = 1> {
int a = !if(b, 5, 6);
}
def X : A<0>;
def Y : A;