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
/
bug1185672.c
blob
7d0bfb27ea1d2cfb26bf372074da97d1b2ada631
1
/*
2
bug1057979.c
3
*/
4
5
#include <testfwk.h>
6
7
int
srlen
;
8
9
int
l_regrd
(
int
ad
)
10
{
11
return
ad
;
12
}
13
14
void
head_send
(
int
i
)
15
{
16
srlen
=
i
;
17
if
((
l_regrd
(
0x1234
) &
0x0200
) ==
0
)
18
{
19
srlen
=
0
;
20
}
21
}
22
23
void
24
test_1185672
(
void
)
25
{
26
head_send
(
1
);
27
ASSERT
(
srlen
==
1
);
28
}