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-2881.c
blob
f030d17df5a236e9b1b1dac804c8abb8587bf760
1
/*
2
bug-2881.c
3
stack pointer adjustment code overwrote register parameter.
4
*/
5
6
#include <testfwk.h>
7
8
void
g
(
void
*
p
)
9
{
10
p
;
11
}
12
13
int
f
(
int
test
)
__z88dk_fastcall
14
{
15
char
buffer
[
10
];
16
g
(
buffer
);
17
return
test
+
test
;
18
}
19
20
void
21
testBug
(
void
)
22
{
23
ASSERT
(
f
(
21
) ==
42
);
24
}
25