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

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

public class Foo
{
}

public class X
{
	public static Foo Test (Foo foo, Foo bar)
	{
		return foo ?? bar;
	}

	public static int Main()
	{
		Foo[] array = new Foo [1];

		Foo foo = new Foo ();
		Foo bar = Test (array [0], foo);

		if (bar == null)
			return 1;

		return 0;
	}
}