repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-3257.c
blob
f013d0d1d867adced4ba84905e1809420f113bb1
1
/*
2
bug-3256.c
3
A bug in the stm8 code generation for tail calls from __z88dk_callee with stack parameters.
4
*/
5
6
#include <testfwk.h>
7
8
char
9
g
(
void
)
10
{
11
return
23
;
12
}
13
14
char
15
f
(
unsigned short
a
,
unsigned short
b
)
__z88dk_callee
16
{
17
if
(
a
==
b
)
18
return
g
();
19
return
42
;
20
}
21
22
void
23
testBug
(
void
)
24
{
25
ASSERT
(
f
(
23
,
23
) ==
23
);
26
ASSERT
(
f
(
23
,
42
) ==
42
);
27
}
28