struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3257.c
blobf013d0d1d867adced4ba84905e1809420f113bb1
1 /*
2 bug-3256.c
3 A bug in the stm8 code generation for tail calls from __z88dk_callee with stack parameters.
4 */
6 #include <testfwk.h>
8 char
9 g (void)
11 return 23;
14 char
15 f (unsigned short a, unsigned short b) __z88dk_callee
17 if (a == b)
18 return g ();
19 return 42;
22 void
23 testBug (void)
25 ASSERT (f (23, 23) == 23);
26 ASSERT (f (23, 42) == 42);