Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / test-dictinit-04.cs
1 // Compiler options: -unsafe
2
3 unsafe class C
4 {
5         int* X;
6
7         static int Main()
8         {
9                 var ptrs = new[] { 0 };
10
11                 fixed (int* p = ptrs) {
12                         new C (p) {
13                                 X = {
14                                         [0] = 1
15                                 }
16                         };
17                 }
18
19                 if (ptrs [0] != 1)
20                         return 1;
21
22                 return 0;
23         }
24
25         C (int* x)
26         {
27                 X = x;
28         }
29 }