blob: 87c28794793a7e000578a03ff644ed199763ab4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Compiler options: -warnaserror
// This ensures that any "unreachable code" warning will error out
// rather than generate invalid IL
class Foo
{
public static int y = 1;
public static int f () { return 0; }
public static int Main ()
{
int x;
do {
x = f ();
if (x != 0)
continue;
return 0;
} while (x > y);
return 1;
}
}
|