llvm.org GIT mirror llvm / release_34 test / TableGen / ifbit.td
release_34

Tree @release_34 (Download .tar.gz)

ifbit.td @release_34raw · history · blame

// 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;