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

test-85.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f0f8c3a3ac9c7eebbd3c569c7fbae146bc65e699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// This test declares a field variable called `UnmanagedType' of type
// UnmanagedType.
//
// The test is used to test the cast of 0 to UnmanagedType, as before
// that would have been resolved to a variable instead of a type.
//
using System.Runtime.InteropServices;

class X {
	static UnmanagedType UnmanagedType;

	public static int Main ()
	{
		UnmanagedType = (UnmanagedType) 0;

		if (UnmanagedType != 0)
			return 1;

		return 0;
	}
}