[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-85.cs
blobf0f8c3a3ac9c7eebbd3c569c7fbae146bc65e699
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 public static int Main ()
15 UnmanagedType = (UnmanagedType) 0;
17 if (UnmanagedType != 0)
18 return 1;
20 return 0;