Tue Jul 27 15:47:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
[mono.git] / mono / tests / typeof-ptr.cs
1 using System;
2 using System.Reflection;
3
4 class T {
5         public static unsafe void meth (int a, int* b) {
6         }
7         static int Main () {
8                 ParameterInfo[] args = typeof (T).GetMethod ("meth").GetParameters ();
9                 if (args[0].ParameterType == args[1].ParameterType)
10                         return 1;
11                 
12                 if (typeof(int) == typeof (int*))
13                         return 2;
14                 if (args[0].ParameterType != typeof(int))
15                         return 3;
16                 if (args[1].ParameterType != typeof(int*))
17                         return 4;
18                 return 0;
19         }
20 }