struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr66233.c
blob27b1b981688200b2a372ba788d8df5f991bf2f3e
1 /*
2 pr66233.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR tree-optimization/66233 */
9 unsigned int v[8];
11 #ifndef __SDCC_pdk14 // Lack of memory
12 void
13 foo (void)
15 int i;
16 for (i = 0; i < 8; i++)
17 v[i] = (float) i;
19 #endif
21 void
22 testTortureExecute (void)
24 #ifndef __SDCC_pdk14 // Lack of memory
25 unsigned int i;
26 foo ();
27 for (i = 0; i < 8; i++)
28 if (v[i] != i)
29 ASSERT (0);
30 return;
31 #endif