This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
authornobody <nobody@localhost>
Tue, 27 Jul 2004 12:55:01 +0000 (12:55 -0000)
committernobody <nobody@localhost>
Tue, 27 Jul 2004 12:55:01 +0000 (12:55 -0000)
svn path=/branches/mono-1-0/mono/; revision=31512

mono/tests/typeof-ptr.cs [new file with mode: 0644]

diff --git a/mono/tests/typeof-ptr.cs b/mono/tests/typeof-ptr.cs
new file mode 100644 (file)
index 0000000..eea3d10
--- /dev/null
@@ -0,0 +1,20 @@
+using System;
+using System.Reflection;
+
+class T {
+       public static unsafe void meth (int a, int* b) {
+       }
+       static int Main () {
+               ParameterInfo[] args = typeof (T).GetMethod ("meth").GetParameters ();
+               if (args[0].ParameterType == args[1].ParameterType)
+                       return 1;
+               
+               if (typeof(int) == typeof (int*))
+                       return 2;
+               if (args[0].ParameterType != typeof(int))
+                       return 3;
+               if (args[1].ParameterType != typeof(int*))
+                       return 4;
+               return 0;
+       }
+}