Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / qct / 0032-indec.c
blob55281cbd4943860c318cc5138d27674795b54239
2 int
3 zero()
5 return 0;
8 int
9 one()
11 return 1;
14 int
15 main()
17 int x;
18 int y;
20 x = zero();
21 y = ++x;
22 if (x != 1)
23 return 1;
24 if (y != 1)
25 return 1;
27 x = one();
28 y = --x;
29 if (x != 0)
30 return 1;
31 if (y != 0)
32 return 1;
34 x = zero();
35 y = x++;
36 if (x != 1)
37 return 1;
38 if (y != 0)
39 return 1;
41 x = one();
42 y = x--;
43 if (x != 0)
44 return 1;
45 if (y != 1)
46 return 1;
48 return 0;