From: nobody Date: Tue, 27 Jul 2004 12:55:01 +0000 (-0000) Subject: This commit was manufactured by cvs2svn to create branch 'mono-1-0'. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=dd866d68820e0f66046256bb5d3f84e3988a8be0;hp=bbe29a6f8385b102b8e2eafef10d547f465b99c6;p=mono.git This commit was manufactured by cvs2svn to create branch 'mono-1-0'. svn path=/branches/mono-1-0/mono/; revision=31512 --- diff --git a/mono/tests/typeof-ptr.cs b/mono/tests/typeof-ptr.cs new file mode 100644 index 00000000000..eea3d1072db --- /dev/null +++ b/mono/tests/typeof-ptr.cs @@ -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; + } +}