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

test-790.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b3daa3974aeedffed8eb7e37600e60c17a3a5120 (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
struct S
{
	public S (double d)
	{
	}
}

enum E
{
}

struct Test
{
	static void Verify_1 (out Test a, out Test b)
	{
		a = b = new Test ();
	}

	static void Verify_2 (ref S a, ref S b)
	{
		a = b = new S (4.31);
	}

	static void Verify_3 (out E a, out E b)
	{
		a = b = new E ();
	}

	public static int Main ()
	{
		Test t1, t2;
		Verify_1 (out t1, out t2);

		S s1, s2;
		Verify_2 (ref s1, ref s2);

		E e1, e2;
		Verify_3 (out e1, out e2);
		return 0;
	}
}