Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-3457.c
blobc6fcd6fb1f2d89a502d1339c6ce8a9e25c650c15
1 /* bug-3457.c
3 Wrong line number on divide by 0 warning
5 Based on GPL 2.0 code by "Under4MHz"
6 */
8 #ifdef TEST1
9 int abs (int);
11 void test(void) {
13 int Y = 0;
15 int inf = abs( 1 / Y ); /* WARNING(SDCC) */ /* IGNORE(GCC) */
16 int a = 0;
17 int b = 0;
18 int c = 0;
19 for(int i = 0; i < 10; i++)
21 c++;
24 #endif