blob: a50379568f3f95e2c37d18543ff275d614282288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//
// 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;
static int Main ()
{
UnmanagedType = (UnmanagedType) 0;
if (UnmanagedType != 0)
return 1;
return 0;
}
}
|