repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2007-12-06 Jb Evain <jbevain@novell.com>
[mono.git]
/
mono
/
tests
/
nested-loops.cs
blob
4475ab7d7153b92b6a5d9e176475eb03f7f8a6eb
1
2
public class
NestedLoop
{
3
static public int
Main
() {
4
int
n
=
16
;
5
int
x
=
0
;
6
int
a
=
n
;
7
while
(
a
-- !=
0
) {
8
int
b
=
n
;
9
while
(
b
-- !=
0
) {
10
int
c
=
n
;
11
while
(
c
-- !=
0
) {
12
int
d
=
n
;
13
while
(
d
-- !=
0
) {
14
int
e
=
n
;
15
while
(
e
-- !=
0
) {
16
int
f
=
n
;
17
while
(
f
-- !=
0
) {
18
x
++;
19
}
20
}
21
}
22
}
23
}
24
}
25
if
(
x
!=
16777216
)
26
return
1
;
27
return
0
;
28
}
29
}
30
31