struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug2862650.c
bloba44cfbac84cb3eb1df12244a5c138ef1c8b9eb44
1 /*
2 * bug2862650.c
3 */
5 #include <testfwk.h>
7 void
8 testBug(void)
10 #ifndef __SDCC_pdk14 // Lack of memory
11 static const float a[] = {1.5, 2.5, 3.5};
12 const float b[] = {4.5, 5.5, 6.5};
13 static float c[] = {7.5, 8.5, 9.5};
14 volatile char i;
16 i = 1;
18 ASSERT(a[i] == 2.5);
19 ASSERT(b[i] == 5.5);
20 ASSERT(c[i] == 8.5);
21 #endif