repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In ilasm/tests:
[mcs.git]
/
tests
/
test-185.cs
blob
6f06b22be695247aed3514bb7ea4922da91f2c5f
1
using
System
;
2
3
class
X
4
{
5
public static int
Test
(
int
x
)
6
{
7
for
(;;) {
8
if
(
x
!=
1
)
9
x
--;
10
else
11
break
;
12
return
5
;
13
}
14
return
0
;
15
}
16
17
static int
Main
()
18
{
19
if
(
Test
(
1
) !=
0
)
20
return
1
;
21
22
if
(
Test
(
2
) !=
5
)
23
return
2
;
24
25
return
0
;
26
}
27
}