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

test-8.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe91afab0d0f35d45719ce7b5fd3ceb361fa87e2 (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
class X {
	public static int Main (string [] args)
	{
		int a, b, c, d;

		a = b = 10;
		c = d = 14;

		if ((a + b) != 20)
			return 1;
		if ((a + d) != 24)
			return 2;
		if ((c + d) != 28)
			return 3;
		if ((b + c) != 24)
			return 4;

		if (a++ != 10)
			return 5;
		if (++a != 12)
			return 6;
		if (b-- != 10)
			return 7;
		if (--b != 8)
			return 8;
				
		return 0;
	}
}