projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-108.cs
1
class X {
2
3
static int Main ()
4
{
5
int i = 0;
6
7
if (false){
8
i = 1;
9
return 1;
10
}
11
12
if (true)
13
i = 2;
14
else
15
i = 3;
16
17
if (i != 2)
18
return 5;
19
20
while (true){
21
i++;
22
if (i == 10)
23
break;
24
}
25
26
while (false){
27
i--;
28
return 3;
29
}
30
31
if (i != 10)
32
return 2;
33
34
do {
35
if (i++ == 20)
36
break;
37
} while (true);
38
39
if (i != 21)
40
return 4;
41
42
return 0;
43
}
44
}