YouCompleteMe/cpp/llvm/test/TableGen/ifbit.td

12 lines
162 B
TableGen
Raw Normal View History

2012-07-05 20:51:06 -04:00
// 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;