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
2009-07-17 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-504.cs
blob
87c28794793a7e000578a03ff644ed199763ab4d
1
// Compiler options: -warnaserror
2
3
// This ensures that any "unreachable code" warning will error out
4
// rather than generate invalid IL
5
6
class
Foo
7
{
8
public static int
y
=
1
;
9
public static int
f
()
{ return 0; }
10
public static int
Main
()
11
{
12
int
x
;
13
14
do
{
15
x
=
f
();
16
if
(
x
!=
0
)
17
continue
;
18
return
0
;
19
}
while
(
x
>
y
);
20
21
return
1
;
22
}
23
}