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: ba464e35e49738c8c5ea74bb4e98b4732c063be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;

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

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

		return 0;
	}
}