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

gtest-623.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ce9b79d1bd1a47f9bf75544b4d8522532744b3f6 (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
// Compiler options: -r:gtest-623-lib.dll

using System;

public class C
{
	static bool Test<T> () where T : struct, I
	{
		var t = new T ();
		if (t.GetValue () != 3)
			return false;

		return true;
	}

	public static int Main ()
	{
		if (!Test<S> ())
			return 1;

		Console.WriteLine ("ok");
		return 0;
	}
}