Improve lock check output. Add more validation samples.
[smatch.git] / validation / bad-ternary-cond.c
blobd5944e9b58ff40721f1bc2fec69f6c33e636bcee
1 static int foo(int a)
3 return a ?? 1 : 0;
5 /*
6 * check-name: Bad ternary syntax
7 * check-description: Once caused Sparse to segfault
8 * check-error-start
9 bad-ternary-cond.c:3:12: error: Expected : in conditional expression
10 bad-ternary-cond.c:3:12: error: got ?
11 * check-error-end