Merge pull request #733 from amoiseev-softheme/bugfix/monofix
[mono.git] / mcs / tests / test-85.cs
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;
9
10 class X {
11         static UnmanagedType UnmanagedType;
12
13         public static int Main ()
14         {
15                 UnmanagedType = (UnmanagedType) 0;
16
17                 if (UnmanagedType != 0)
18                         return 1;
19
20                 return 0;
21         }
22 }
23