struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-1805702.c
blob8a753682bf775c925263a62c36f58e0800980956
1 /* bug-1805702.c
2 */
4 #include <testfwk.h>
6 int foo;
7 extern int foo;
9 void
10 test(void)
12 #if !defined(__SDCC_pdk14) // Not enough RAM
13 foo = 10;
15 ASSERT(foo == 10);
16 #endif
19 #if !defined(__SDCC_pdk14) // Not enough RAM
20 /* compile time check for compiler defined functions (cdef) */
22 #ifndef __SDCC_mcs51
23 #define __nonbanked
24 #endif
26 float __fsmul (float, float) __nonbanked;
28 float __fsmul (float a1, float a2) __nonbanked {
29 /* just for testing... */
30 return (a1 + a2);
32 #endif