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

gtest-named-04.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 213d809f472121b29b747b7ca71ec780dd413193 (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
45
46
47
48
class Test
{
	static string V;

	static int f (int a)
	{
		V += a;
		return a;
	}

	static void m (int a, int b, int c)
	{
	}

	static void m (int a, int b, int c, int d)
	{
	}

	public static int Main ()
	{
		V = "";
		m (f (1), b: f (2), c: f (3));
		if (V != "123")
			return 1;

		V = "";
		m (a: f (1), c: f (2), b: f (3));
		if (V != "123")
			return 2;

		V = "";
		m (f (1), c: f (2), b: f (3));
		if (V != "123")
			return 3;

		V = "";
		m (f (1), f (2), c: f (3), d: f (4));
		if (V != "1234")
			return 4;

		V = "";
		m (f (1), f (2), d: f (3), c: f (4));
		if (V != "1234")
			return 5;

		return 0;
	}
}