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

test-692.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8ce44865123d9950ee1c3406a65913f77dfabc1b (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
using System;

class Test
{
	static DateTime a, b, c;
	DateTime ia, ib, ic;

	static void test1 (out DateTime x)
	{
		x = new DateTime (85);
	}

	static void test2 (ref DateTime x)
	{
		x = new DateTime (999);
	}

	public static int Main ()
	{
		c = b = a = new DateTime (633596616517216000);
		if (c != a)
			return 1;

		if (b != c)
			return 2;

		DateTime ia, ib, ic;
		ic = ib = ia = new DateTime (633596616517216000);

		if (ic != ia)
			return 10;

		if (ib != ic)
			return 12;

		test1 (out ia);
		test2 (ref ia);

		return 0;
	}
}