1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/TableGen/cond-default.td

12 lines
328 B
TableGen
Raw Normal View History

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