Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

27 lines
274 B
C#

using System;
class X
{
static int Foo = 10;
static void Test ()
{
while (true) {
if (Foo == 1)
throw new Exception ("Error Test");
else
break;
}
Foo = 20;
}
public static int Main ()
{
Test ();
if (Foo != 20)
return 1;
return 0;
}
}