a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
446 B
C#
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;
|
|
}
|
|
}
|
|
|