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

test-108.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 291843bc309e4ec19c4200d3c6d4b42fbe03382e (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
33
34
35
36
37
38
39
40
41
42
43
44
class X {

	public static int Main ()
	{
		int i = 0;
		
		if (false){
			i = 1;
			return 1;
		}

		if (true)
			i = 2;
		else
			i = 3;

		if (i != 2)
			return 5;
		
		while (true){
			i++;
			if (i == 10)
				break;
		}

		while (false){
			i--;
			return 3;
		}

		if (i != 10)
			return 2;

		do {
			if (i++ == 20)
				break;
		} while (true);

		if (i != 21)
			return 4;
		
		return 0;
	}
}