Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / dtest-028.cs
1 class C
2 {
3         public void MethodRef (ref int a)
4         {
5                 a += 10;
6         }
7         
8         public void MethodOut (out ushort a)
9         {
10                 a = 40;
11         }
12 }
13
14 public class Test
15 {
16         static void M (ref dynamic[] d, ref object[] o)
17         {
18         }
19         
20         public static int Main ()
21         {
22                 dynamic d = new C ();
23                 int i = 1;
24                 
25                 d.MethodRef (ref i);
26                 if (i != 11)
27                         return 1;
28
29                 ushort u = 9;
30                 d.MethodOut (out u);
31                 if (u != 40)
32                         return 2;
33                 
34                 object[] o = null;
35                 M (ref o, ref o);
36                 
37                 return 0;
38         }
39 }