2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / test-140.cs
blob03c9757b16b4e84969ee7ed8e2653f21fd8ef39c
1 //
2 // We used to generate incorrect code for breaks in infinite while loops
3 //
4 using System;
6 public class BreakTest
8 static int ok = 0;
10 public static void B ()
12 ok++;
13 while (true)
15 ok++;
16 break;
18 ok++;
21 public static int Main()
23 B ();
24 if (ok != 3)
25 return 1;
26 return 0;