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

test-516.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e6396ce9787f425e00cf22a3682357828b7a48f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Compiler options: -warnaserror -warn:2

// Same as test-515, but we're checking that there's no "unreachable code" warning either

class X {
	public static void Main ()
	{
		int i = 0;
		goto a;
	b:
		if (++ i > 1)
			throw new System.Exception ("infloop!!!");
		return;
	a:
		goto b;
	}
}