7d7f676260
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
22 lines
263 B
C#
22 lines
263 B
C#
// 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)
|
|
{
|
|
|
|
}
|
|
} |