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-3355.c
blob
cbd77936747e74fa24c00d5110ce2eb3fbc9e048
1
/* bug-3255.c
2
A bug in comparisons on mcs51.
3
*/
4
5
#include <testfwk.h>
6
7
volatile
unsigned char
ua
,
ub
;
8
9
int
f
(
void
)
10
{
11
if
((
ua
<=
ub
) ==
1
)
// No bug without the == 1 here.
12
return
1
;
13
return
0
;
14
}
15
16
void
testBug
(
void
)
17
{
18
#if !defined(__SDCC_mcs51) && !defined(__SDCC_ds390)
// Enable when bug is fixed.
19
ua
=
1
;
20
ub
=
2
;
21
ASSERT
(
f
());
22
#endif
23
}
24