Merge pull request #5382 from kumpera/pedump_fix
[mono.git] / mono / tests / bug-461941.cs
1 using System;
2 using System.Reflection;
3
4
5 namespace TestApp
6 {
7     class Driver
8     {
9                 static int val;
10
11                 public static void Test (ref int? x) {
12                         val = x.Value;
13                 }
14
15                 static int Main()
16                 {
17                         MethodInfo mi = typeof (Driver).GetMethod ("Test");
18                         mi.Invoke (null, new object[] { 20 });
19                         if (val != 20)
20                                 return 1;
21                         return 0;
22                 }
23         }
24 }