struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20010114-1.c
bloba8d7dfc0c2510c75900907da9354b11d88b01138
1 /*
2 20010114-1.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 /* Origin: PR c/1540 from Mattias Lampe <lampe@tu-harburg.de>,
12 adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
13 GCC 2.95.2 fails, CVS GCC of 2001-01-13 passes. */
15 void
16 testTortureExecute (void)
18 int array1[1] = { 1 };
19 int array2[2][1]= { { 1 }, { 0 } };
20 if (array1[0] != 1)
21 ASSERT (0);
22 return;