summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/cond-default.td
blob: 816bf10676fe3188640e6b210c08ff8efb44a5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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")
OpenPOWER on IntegriCloud