Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / qct / 0033-ptrindec.c
blob30d4271be21d2415b04166ec2777afdd32dc90cb
3 int
4 main()
6 int arr[2];
7 int *p;
9 arr[0] = 2;
10 arr[1] = 3;
11 p = &arr[0];
12 if(*(p++) != 2)
13 return 1;
14 if(*(p++) != 3)
15 return 2;
17 p = &arr[1];
18 if(*(p--) != 3)
19 return 1;
20 if(*(p--) != 2)
21 return 2;
23 p = &arr[0];
24 if(*(++p) != 3)
25 return 1;
27 p = &arr[1];
28 if(*(--p) != 2)
29 return 1;
31 return 0;