Merge pull request #260 from pcc/topmost
[mono.git] / mcs / tests / test-516.cs
1 // Compiler options: -warnaserror -warn:2
2
3 // Same as test-515, but we're checking that there's no "unreachable code" warning either
4
5 class X {
6         public static void Main ()
7         {
8                 int i = 0;
9                 goto a;
10         b:
11                 if (++ i > 1)
12                         throw new System.Exception ("infloop!!!");
13                 return;
14         a:
15                 goto b;
16         }
17 }