Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2004-09-07 17:45:52 +0400
committerDuncan Mak <duncan@mono-cvs.ximian.com>2004-09-07 17:45:52 +0400
commite297e11dbdf2e266b2e3eddf539d616120842188 (patch)
tree01de3f147799746418c9962eca1878e84e8b580a
parent1af532c0dda16a222839c2932bfe8014efcce879 (diff)
2004-09-07 Duncan Mak <duncan@ximian.com>
* typeof-ptr.cs: Add unsafe sections to the code that's using pointers directly. This was breaking the test stage on the build boxes. svn path=/branches/mono-1-0/mono/; revision=33518
-rw-r--r--mono/tests/ChangeLog6
-rw-r--r--mono/tests/typeof-ptr.cs16
2 files changed, 17 insertions, 5 deletions
diff --git a/mono/tests/ChangeLog b/mono/tests/ChangeLog
index e73b632c1c1..041938869bd 100644
--- a/mono/tests/ChangeLog
+++ b/mono/tests/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-07 Duncan Mak <duncan@ximian.com>
+
+ * typeof-ptr.cs: Add unsafe sections to the code that's using
+ pointers directly. This was breaking the test stage on the build
+ boxes.
+
2004-05-29 Zoltan Varga <vargaz@freemail.hu>
* invoke.cs: Add an Invoke test.
diff --git a/mono/tests/typeof-ptr.cs b/mono/tests/typeof-ptr.cs
index eea3d1072db..69e75ca1745 100644
--- a/mono/tests/typeof-ptr.cs
+++ b/mono/tests/typeof-ptr.cs
@@ -8,13 +8,19 @@ class T {
ParameterInfo[] args = typeof (T).GetMethod ("meth").GetParameters ();
if (args[0].ParameterType == args[1].ParameterType)
return 1;
-
- if (typeof(int) == typeof (int*))
- return 2;
+
+ unsafe {
+ if (typeof(int) == typeof (int*))
+ return 2;
+ }
if (args[0].ParameterType != typeof(int))
return 3;
- if (args[1].ParameterType != typeof(int*))
- return 4;
+
+ unsafe {
+ if (args[1].ParameterType != typeof(int*))
+ return 4;
+ }
+
return 0;
}
}