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

test-907.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a832c911239409677b19c5ce2b85cd6136a034a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public enum Foo { One, Two };

class MainClass
{
	public static int Main ()
	{
		const Foo foo = Foo.Two;
		int obj;

		switch (foo) {
			case Foo.One:
			case Foo.Two:
				obj = 2;
				break;
		}

		if (obj != 2)
			return 1;

		return 0;
	}
}