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
/
bug1337835.c
blob
7abccb4090bb771fb71fa99a0aa48b91b7c08a77
1
/*
2
bug1337835.c
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_sdcc99
9
#endif
10
11
#include <stdbool.h>
12
13
char
e
;
14
15
void
foo
(
unsigned long
ul
,
bool
b
,
char
c
)
__reentrant
16
{
17
if
(
b
&& (
long
)
ul
<
0
)
18
e
=
0
;
19
if
(
ul
&&
b
&&
c
)
20
e
=
1
;
21
}
22
23
void
24
test_1337835
(
void
)
25
{
26
e
=
2
;
27
foo
(
0
,
1
,
0
);
28
ASSERT
(
e
==
2
);
29
}