You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
22
mcs/tests/test-ref-12.cs
Normal file
22
mcs/tests/test-ref-12.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user