repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/protocols - sync with NetBSD-8
[minix.git]
/
tests
/
usr.bin
/
xlint
/
lint1
/
d_c99_for_loops.c
blob
48e380cb36003effa30bf1db116235b094c96e41
1
/* c99 for loops */
2
extern
void
foo
(
int
);
3
4
int
5
main
(
void
)
6
{
7
// Test the basic functionality
8
for
(
int
i
=
0
;
i
<
10
;
i
++)
9
foo
(
i
);
10
11
// Test that the scope of the iterator is correct
12
for
(
int
i
=
0
;
i
<
10
;
i
++)
13
continue
;
14
return
0
;
15
}