65b6b1a7ac3145c41561d1d262bbe02accae65c3
[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         public static int Main ()
17         {
18                 dynamic d = new C ();
19                 int i = 1;
20                 
21                 d.MethodRef (ref i);
22                 if (i != 11)
23                         return 1;
24
25                 ushort u = 9;
26                 d.MethodOut (out u);
27                 if (u != 40)
28                         return 2;
29                 
30                 return 0;
31         }
32 }