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

test-664.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7e7fc8b0a3a25c36a7a0dcfc573bd321574a9bab (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
27
28
29
30
31
32
class C
{
	static bool Test (string value)
	{
		switch (value) {
			case "1.0":
			case "2.0":
			case "3.0":
			case "4.0":
			case "5.0":
			case "6.0":
			case "7.0":
			case null:
				return true;
		}
		return false;
	}
	
	public static int Main ()
	{
		if (!Test (null))
			return 1;
		
		if (!Test ("6.0"))
			return 2;

		if (Test ("0"))
			return 3;

		return 0;
	}
}