[rx] add missing project file generator helper files.
[mono-project.git] / mono / tests / typeof-ptr.cs
blob69e75ca1745085f722d0d7b8ba7e29bc1a714847
1 using System;
2 using System.Reflection;
4 class T {
5 public static unsafe void meth (int a, int* b) {
7 static int Main () {
8 ParameterInfo[] args = typeof (T).GetMethod ("meth").GetParameters ();
9 if (args[0].ParameterType == args[1].ParameterType)
10 return 1;
12 unsafe {
13 if (typeof(int) == typeof (int*))
14 return 2;
16 if (args[0].ParameterType != typeof(int))
17 return 3;
19 unsafe {
20 if (args[1].ParameterType != typeof(int*))
21 return 4;
24 return 0;