Merge pull request #5714 from alexischr/update_bockbuild
[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                 unsafe { 
13                         if (typeof(int) == typeof (int*))
14                                 return 2;
15                 }
16                 if (args[0].ParameterType != typeof(int))
17                         return 3;
18
19                 unsafe { 
20                         if (args[1].ParameterType != typeof(int*))
21                                 return 4;
22                 }
23
24                 return 0;
25         }
26 }