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
/
bug1721024.c
blob
1035aa779da8f194426ad7a0098455878b6cd74d
1
/*
2
bug 1721024
3
*/
4
5
#include <testfwk.h>
6
7
static unsigned char
temp1
;
8
static unsigned char
temp2
;
9
10
void
tst
(
unsigned long
acc
)
11
{
12
UNUSED
(
acc
);
13
temp1
--;
14
if
(
temp1
==
0
)
15
{
16
temp2
=
0
;
17
}
18
}
19
20
void
21
testBug
(
void
)
22
{
23
temp1
=
1
;
24
temp2
=
2
;
25
tst
(
0xFFFFFFFF
);
//make sure acc!=0
26
ASSERT
(
temp2
==
0
);
27
}