struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3474855.c
blob8fe003d04e60e990c01aa1f96f41f33ab2b93b41
1 /*
2 bug3474855.c
3 */
5 #include <testfwk.h>
7 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
8 float mult(float x)
10 return 0.8 * x;
12 #endif
14 void
15 testBug (void)
17 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
18 unsigned char i = 64;
19 float result = 1e-38;
23 ASSERT (result < 1.5e-38);
24 result = mult(result); //make denormalized float
26 while (--i);
27 ASSERT (result < 1e-44);
28 #endif