struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr79286.c
blob69c94b78efe0dbd04469a7958aad9ec9e38c2d41
1 /*
2 pr79286.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #include <stdio.h>
13 int a = 0, c = 0;
14 #if 0 // Enable when SDCC supports this style of init
15 static int d[][8] = {};
16 #endif
17 void
18 testTortureExecute (void)
20 #if 0
21 int e;
22 for (int b = 0; b < 4; b++)
24 printf ("%d\n", b, e);
25 while (a && c++)
26 e = d[300000000000000000][0];
29 return;
30 #endif
33 #if !defined(PORT_HOST)
34 int putchar (int c)
38 #endif