Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 79_vla_continue.c
blobdd6379014a2abce48831793837cb16c564baedc8
1 #include <stdio.h>
3 int f(void)
5 return 5;
8 void test1()
10 int count = 10;
11 void *addr[10];
12 for(;count--;) {
13 int a[f()];
15 addr[count] = a;
17 continue;
20 if(addr[9] == addr[0]) {
21 printf("OK\n");
22 } else {
23 printf("NOT OK\n");
27 void test2()
29 int count = 10;
30 void *addr[count];
31 for(;count--;) {
32 int a[f()];
34 addr[count] = a;
36 continue;
39 if(addr[9] == addr[0]) {
40 printf("OK\n");
41 } else {
42 printf("NOT OK\n");
46 void test3()
48 int count = 10;
49 void *addr[count];
50 while(count--) {
51 int b[f()];
52 if (count >= 0) {
53 int a[f()];
55 addr[count] = a;
57 continue;
61 if(addr[9] == addr[0]) {
62 printf("OK\n");
63 } else {
64 printf("NOT OK\n");
68 void test4()
70 int count = 10;
71 void *addr[count];
72 do {
73 int a[f()];
75 addr[--count] = a;
77 continue;
78 } while (count);
80 if(addr[9] == addr[0]) {
81 printf("OK\n");
82 } else {
83 printf("NOT OK\n");
87 void test5()
89 int count = 10;
90 int a[f()];
91 int c[f()];
93 c[0] = 42;
95 for(;count--;) {
96 int b[f()];
97 int i;
98 for (i=0; i<f(); i++) {
99 b[i] = count;
103 if (c[0] == 42) {
104 printf("OK\n");
105 } else {
106 printf("NOT OK\n");
110 int main(void)
112 test1();
113 test2();
114 test3();
115 test4();
116 test5();
118 return 0;