Skip to content
Browse files

2008-12-24 Rodrigo Kumpera <rkumpera@novell.com>

	* bug-461941.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122071
  • Loading branch information...
1 parent 937d54b commit cac90acc5ee7ae8e0367cb99d37fada81766c871 @kumpera kumpera committed Dec 24, 2008
Showing with 32 additions and 3 deletions.
  1. +6 −2 mono/tests/ChangeLog
  2. +2 −1 mono/tests/Makefile.am
  3. +24 −0 mono/tests/bug-461941.cs
View
8 mono/tests/ChangeLog
@@ -1,9 +1,13 @@
-2008-12-23 Mark Probst <mark.probst@gmail.com>
+2008-12-24 Rodrigo Kumpera <rkumpera@novell.com>
- * bug-461198.2.cs: New generic sharing test.
+ * bug-461941.cs: New regression test.
* Makefile.am: Test added.
+2008-12-23 Mark Probst <mark.probst@gmail.com>
+
+ * bug-461198.2.cs: New generic sharing test.
+
2008-12-23 Rodrigo Kumpera <rkumpera@novell.com>
* bug-461867.cs: New regression test.
View
3 mono/tests/Makefile.am
@@ -328,7 +328,8 @@ BASE_TEST_CS_SRC= \
filter-stack.cs \
vararg2.cs \
bug-389886-sre-generic-interface-instances.cs \
- bug-461867.cs
+ bug-461867.cs \
+ bug-461941.cs
if AMD64
TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
View
24 mono/tests/bug-461941.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Reflection;
+
+
+namespace TestApp
+{
+ class Driver
+ {
+ static int val;
+
+ public static void Test (ref int? x) {
+ val = x.Value;
+ }
+
+ static int Main()
+ {
+ MethodInfo mi = typeof (Driver).GetMethod ("Test");
+ mi.Invoke (null, new object[] { 20 });
+ if (val != 20)
+ return 1;
+ return 0;
+ }
+ }
+}

0 comments on commit cac90ac

Please sign in to comment.
Something went wrong with that request. Please try again.