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

test-854.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 32954ba6adad14996a1077dba858796c17156efa (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
using System;

public class Test {

	public static int Main ()
	{
		int a = 2;
		int res = 0;
		switch(a) {
		case 1:
			res += 1;
		label:
			res += 3;
			break;
		case 2:
			res += 2;
			goto label;
		}

		if (res != 5)
			return 1;

		return 0;
	}
}