Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 122_vla_reuse.c
blobd894af87a38d36ed0769cd61dbf46408daba1c66
1 #include <stdio.h>
3 int
4 main (void)
6 int n = 0;
7 int first=1;
8 int *p[101];
9 if (0) {
10 lab:;
12 int x[n % 100 + 1];
13 if (first == 0) {
14 if (&x[0] != p[n % 100 + 1]) {
15 printf ("ERROR: %d %p $p\n", &x[0], p[n % 100 + 1]);
16 return(1);
19 else {
20 p[n % 100 + 1] = &x[0];
21 first = n < 100;
23 x[0] = 1;
24 x[n % 100] = 2;
25 n++;
26 if (n < 100000)
27 goto lab;
28 printf ("OK\n");
29 return 0;