xref: /illumos-gate/usr/src/tools/smatch/src/validation/cast-bad-01.c (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1 extern unsigned long l;
2 
3 int foo(void) {
4 	return (int) (typeof(fundecl(0))) l;
5 }
6 
7 /*
8  * check-name: cast-bad 01
9  *
10  * check-error-start
11 cast-bad-01.c:4:30: error: undefined identifier 'fundecl'
12  * check-error-end
13  */
14