[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-ref-02.cs
blob9adf471576e56a10f29e8dee0c1feba07b7636fe
1 using System;
3 class X
5 int field;
7 static void Main ()
9 var x = new X ();
10 x.Run ();
13 void Run ()
15 Test (ref this[0]);
16 Test (ref Prop);
19 static int Test (ref int y)
21 return y;
24 ref int this [int y] {
25 get {
26 return ref field;
30 ref int Prop {
31 get {
32 return ref field;