llvm.org GIT mirror llvm / release_37 test / TableGen / eqbit.td
release_37

Tree @release_37 (Download .tar.gz)

eqbit.td @release_37raw · 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(!eq(b, 1), 5, 6);
}

def X : A<0>;
def Y : A;