*new* memset: check for memset(x, y, 0); typos
[smatch.git] / validation / bad-ternary-cond.c
blobe3d07b5171d63e04d26ed6bb3529bfa4ceb1f624
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:19: error: Expected : in conditional expression
10 bad-ternary-cond.c:3:19: error: got ?
11 * check-error-end