Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 123_vla_bug.c
blob6d92c27cf3e1f6032ec64103d4aeec5ccc988c61
1 typedef __SIZE_TYPE__ size_t;
2 extern int printf(const char*, ...);
3 extern size_t strlen(const char*);
4 char str[] = "blabla";
5 int g;
6 int main()
8 //char helpme[strlen(str) + 1];
9 int i = 0;
10 #if 0
11 if (g) {
12 char buf[strlen(str) + 10];
13 buf[0] = 0;
15 alabel:
16 printf("default: i = %d\n", i);
17 #else
18 for (i = 0; i < 5; i++) {
19 switch (i) {
20 case 10:
21 if (g) {
22 char buf[strlen(str) + 10];
23 buf[0] = 0;
24 goto do_cmd;
26 break;
27 case 1:
28 printf("reached 3\n");
29 do_cmd:
30 printf("after do_cmd");
31 break;
32 default:
33 g++;
34 printf("default: i = %d\n", i);
35 break;
38 #endif
39 return 0;