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
/
packcast.c
blob
86b8a23b92d10d8684b3b78536dcee518724aee1
1
/* Tests that a cast used as a parameter gets packed into
2
HL
3
*/
4
#include <testfwk.h>
5
6
void
7
spoil
(
int
a
)
8
{
9
UNUSED
(
a
);
10
}
11
12
void
13
testCastPack
(
char
x
)
14
{
15
int
i
,
j
;
16
volatile
char
a
=
x
;
17
18
for
(
i
=
0
;
i
<
5
;
i
++)
19
{
20
for
(
j
=
0
;
j
<
5
;
j
++)
21
{
22
spoil
(
a
);
23
}
24
}
25
}
26
27
void
testBug
(
void
)
28
{
29
}