Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 78_vla_label.c
blob4096495d9650b36c20e2244641b5d19b30788be5
1 #include <stdio.h>
3 /* This test segfaults as of April 27, 2015. */
4 void f1(int argc)
6 char test[argc];
7 if(0)
8 label:
9 printf("boom!\n");
10 if(argc-- == 0)
11 return;
12 goto label;
15 /* This segfaulted on 2015-11-19. */
16 void f2(void)
18 goto start;
20 int a[1 && 1]; /* not a variable-length array */
21 int b[1 || 1]; /* not a variable-length array */
22 int c[1 ? 1 : 1]; /* not a variable-length array */
23 start:
24 a[0] = 0;
25 b[0] = 0;
26 c[0] = 0;
30 void f3(void)
32 printf("%d\n", 0 ? printf("x1\n") : 11);
33 printf("%d\n", 1 ? 12 : printf("x2\n"));
34 printf("%d\n", 0 && printf("x3\n"));
35 printf("%d\n", 1 || printf("x4\n"));
38 int main()
40 f1(2);
41 f2();
42 f3();
44 return 0;