[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-863.cs
blob1c4cfaf6a2f9436450fae8c340de079dd4f61d24
1 public class TestRefKeywords
3 static int Main ()
5 int i = 0;
6 System.TypedReference r = __makeref(i);
7 System.Type t = __reftype(r);
8 int j = __refvalue( r,int);
10 __refvalue(r, int) = 4;
11 var x = ( __refvalue(r, int) += 1);
13 if (x != 5)
14 return 1;
16 return 0;