struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2881.c
blobf030d17df5a236e9b1b1dac804c8abb8587bf760
1 /*
2 bug-2881.c
3 stack pointer adjustment code overwrote register parameter.
4 */
6 #include <testfwk.h>
8 void g(void *p)
13 int f(int test) __z88dk_fastcall
15 char buffer[10];
16 g(buffer);
17 return test + test;
20 void
21 testBug(void)
23 ASSERT(f(21) == 42);