YouCompleteMe/cpp/llvm/test/TableGen/ifbit.td
2012-07-05 17:51:06 -07:00

12 lines
162 B
TableGen

// RUN: llvm-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;