2009-07-16 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-85.cs
bloba50379568f3f95e2c37d18543ff275d614282288
1 //
2 // This test declares a field variable called `UnmanagedType' of type
3 // UnmanagedType.
4 //
5 // The test is used to test the cast of 0 to UnmanagedType, as before
6 // that would have been resolved to a variable instead of a type.
7 //
8 using System.Runtime.InteropServices;
10 class X {
11 static UnmanagedType UnmanagedType;
13 static int Main ()
15 UnmanagedType = (UnmanagedType) 0;
17 if (UnmanagedType != 0)
18 return 1;
20 return 0;