brintos

brintos / llvm-project-archived public Read only

0
0
Text · 328 B · 816bf10 Raw
12 lines · plain
1// Check that not specifying a valid condition results in error2 3// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s4// XFAIL: vg_leak5 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