struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / frexpf.c
blobd36a295facab03a4fd96cbb168fac05b992086ee
1 /* Test frexpf(), which has a habit of breaking */
4 #include <testfwk.h>
5 #include <math.h>
7 void testfrexpf(void)
9 #if !defined(__SDCC_pdk14) // Lack of memory
10 int e;
11 int *p = &e;
13 ASSERT (frexpf (0.75, p) == 0.75);
15 ASSERT (frexpf (0.75 * 4, p) == 0.75);
17 ASSERT (frexpf (0.75 * 16, p) == 0.75);
18 #endif