1// Check that not specifying a valid condition results in error 2 3// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s 4// XFAIL: vg_leak 5 6class C<int x> { 7 string s = !cond(!lt(x,0) : "negative", !gt(x,0) : "positive"); 8} 9 10def Zero : C<0>; 11//CHECK: error: Zero does not have any true condition in:!cond(0: "negative", 0: "positive") 12