[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-ref-01.cs
blob60126a3593c980c62266b5b6aa730f07373dc489
1 // Compiler options: -unsafe
3 public unsafe class X
5 int field;
6 int* ufield;
8 public static void Main ()
10 int i = 5;
11 ref int j = ref i;
13 var x = new X ();
14 ref var v = ref x.TestMethod ();
17 ref int TestMethod ()
19 return ref field;
22 ref int TestProperty {
23 get {
24 return ref field;
28 ref int this [long arg] {
29 get {
30 return ref field;
34 unsafe ref int* Foo ()
36 return ref ufield;