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
/
bug2719592.c
blob
2ca7b862b025a7c6f21b9be39f7b62279d944b25
1
/*
2
* bug2719592.c
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_sdcc99
9
#endif
10
11
#include <stdbool.h>
12
13
bool
foo
(
char
i
,
bool
bv
)
14
{
15
bv
&= (
i
==
1
);
16
return
bv
;
17
}
18
19
void
20
testBug
(
void
)
21
{
22
ASSERT
( !
foo
(
0
,
0
) );
23
ASSERT
( !
foo
(
0
,
1
) );
24
ASSERT
( !
foo
(
1
,
0
) );
25
ASSERT
(
foo
(
1
,
1
) );
26
}