xref: /illumos-gate/usr/src/tools/smatch/src/validation/bad-type-twice0.c (revision c85f09cc92abd00c84e58ec9f0f5d942906cb713)

foo(a)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