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

test-934.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62b300d60547f6c04fe61ac961a6fe4bc7107343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class X
{
	public static int Main ()
	{
		var a = new byte[] { };
		var b = new byte[] { };
		if (a.Equals (b))
			return 1;

		if (ReferenceEquals (a, b))
			return 2;

		a = new byte[0];
		b = new byte[0];
		if (a.Equals (b))
			return 3;

		if (ReferenceEquals (a, b))
			return 4;

		return 0;
	}
}