struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr77767.c
blob41cdebc09882d2ed8bc8f335afdfe4c2e50250b5
1 /*
2 pr77767.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 /* PR c/77767 */
13 #if 0 // Enable when SDCC allows non-constant expression in array parms
14 void
15 foo (int a, int b[a++], int c, int d[c++])
17 if (a != 2 || c != 2)
18 ASSERT (0);
20 #endif
22 void
23 testTortureExecute (void)
25 #if 0
26 int e[10];
27 foo (1, e, 1, e);
28 return;
29 #endif