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-2370.c
blob
7820e155de145d86896318c58e73fd676e3c98d3
1
/*
2
bug-2370.c
3
--reserve-regs-iy register allocation issue.
4
*/
5
6
#include <testfwk.h>
7
8
void
*
f
(
int
n
)
9
{
10
ASSERT
(
n
==
10
*
sizeof
(
int
));
11
12
return
0
;
13
}
14
15
int
nblock
;
16
int
*
tot
;
17
18
void
testBug
(
void
)
19
{
20
int
ndigit
=
100
;
21
22
if
(
nblock
<
20
)
ndigit
=
20
;
23
24
nblock
=
ndigit
/
2
;
25
tot
= (
int
*)
f
(
nblock
*
sizeof
(
int
));
26
}
27