linux-packaging-mono/mcs/tests/test-ref-12.cs

22 lines
263 B
C#
Raw Normal View History

// Compiler options: -unsafe
unsafe class X
{
public static void Main ()
{
void* pointer = null;
Bar (ref Foo (ref *(byte*)pointer));
}
static int field;
static ref int Foo (ref byte b)
{
return ref field;
}
static void Bar (ref int i)
{
}
}