2008-02-02 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 2 Feb 2009 21:02:39 +0000 (21:02 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 2 Feb 2009 21:02:39 +0000 (21:02 -0000)
* MethodInfoTest.cs: Test for #409583.

svn path=/trunk/mcs/; revision=125410

mcs/class/corlib/Test/System.Reflection/ChangeLog
mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs

index eddeee2700582a7d4de1166376914471cf6014d7..eb00427308f315a6440c81ff7a826330139e2069 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-02  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * MethodInfoTest.cs: Test for #409583.
+
 2008-11-17  Rodrigo Kumpera  <rkumpera@novell.com>
 
        * FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
index 6ec143100710670f5ecb73f8e4c37471d9825a2f..2ad96e3e9d90b05652ff5ea1d9813c33ece3328a 100644 (file)
@@ -175,10 +175,15 @@ namespace MonoTests.System.Reflection
                {
                        out1 = null;
                }
-               
+
                public void SignatureTest (__arglist)
                {
                }
+               
+               public static unsafe int* PtrFunc (int* a)
+               {
+                       return (int*) 0;
+               }
 
                [Test] // bug #81538
                public void InvokeThreadAbort ()
@@ -221,6 +226,12 @@ namespace MonoTests.System.Reflection
                                this.GetType ().GetMethod ("SignatureTest").ToString ());
                }
 
+               [Test]
+               public void ToStringWithPointerSignatures () //bug #409583
+               {
+                       Assert.AreEqual ("Int32* PtrFunc(Int32*)", this.GetType ().GetMethod ("PtrFunc").ToString ());
+               }
+
 #if NET_2_0
                [Test]
                public void ToStringGenericMethod ()