Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-2859.c
blobeb0cfdff320017a4b758826f6f7e1d246033978b
1 /* bug-2859.c
2 Cannot compare function to 0.
3 */
5 void a(void) {}
7 #ifdef TEST1
8 int b(void)
10 /* compare function pointer to non-zero integer literal */
11 return a != 1; /* ERROR */
13 #endif
15 #ifdef TEST1
16 int c(void)
18 /* compare function pointer to 0 with an operator other than ==,!= */
19 return a >= 0; /* ERROR */
21 #endif
23 #ifdef TEST1
24 int d(void)
26 /* compare function pointer to 0 with an operator other than ==,!= */
27 return a < 0; /* ERROR */
29 #endif