Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-384.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a7c0e9c36d51ba5921b93ac966422f3e78b3aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
	}
}