Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
446 B
C#

//
// 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;
}
}