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:
-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;
}
}