xref: /illumos-gate/usr/src/tools/smatch/src/validation/bad-type-twice0.c (revision 4e5ef1cee66fbfbbd2b3e56b81e2bb5700f4a59e)
1 static int foo(a)
2 {
3 	return a ? : 1;
4 }
5 
6 /*
7  * check-name: bad-type-twice0
8  *
9  * check-error-start
10 bad-type-twice0.c:3:16: error: incorrect type in conditional (non-scalar type)
11 bad-type-twice0.c:3:16:    got incomplete type a
12  * check-error-end
13  */
14