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
/
scott-for.c
blob
91eff603c27c48810027c7bcd9b3c2f9a1129627
1
/*
2
*/
3
#include <testfwk.h>
4
5
unsigned int
aint0
=
0
;
6
unsigned int
aint1
=
0
;
7
unsigned char
achar0
=
0
;
8
unsigned char
achar1
=
0
;
9
10
unsigned char
call3
(
void
);
11
12
void
for1
(
void
)
13
{
14
unsigned char
i
=
0
;
15
16
for
(
i
=
0
;
i
<
10
;
i
++)
17
achar0
++;
18
19
ASSERT
(!(
achar0
!=
10
));
20
21
}
22
23
void
for2
(
void
)
24
{
25
unsigned char
i
=
0
;
26
27
for
(
i
=
0
;
i
<
10
;
i
++)
28
achar0
++;
29
30
ASSERT
(!(
i
<
10
));
31
32
}
33
34
void
35
testFor
(
void
)
36
{
37
for1
();
38
for2
();
39
}