Author: kumpera
Date: 2008-02-08 09:19:53 -0500 (Fri, 08 Feb 2008)
New Revision: 95250
Added:
trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store.cs
trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_2.cs
trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_3.cs
trunk/mono/mono/tests/verifier/valid_merge_boxed_type_3.cs
Modified:
trunk/mono/mono/tests/verifier/ChangeLog
trunk/mono/mono/tests/verifier/Makefile
Log:
2008-02-08 Rodrigo Kumpera <[EMAIL PROTECTED]>
* unverifiable_void_ptr_store_2.cs: Tests for using unmanaged pointers.
This test looks for void pointers.
* unverifiable_void_ptr_store_3.cs: Same.
* unverifiable_void_ptr_store.cs: Same.
* valid_merge_boxed_type_3.cs: Test merging a reference type diferent
than
System.Object and a boxed valuetype. This is hopefully the last issue of
merging stack frames.
* Makefile: compile .cs files with /unsafe switch.
Modified: trunk/mono/mono/tests/verifier/ChangeLog
===================================================================
--- trunk/mono/mono/tests/verifier/ChangeLog 2008-02-08 14:18:17 UTC (rev
95249)
+++ trunk/mono/mono/tests/verifier/ChangeLog 2008-02-08 14:19:53 UTC (rev
95250)
@@ -1,3 +1,18 @@
+2008-02-08 Rodrigo Kumpera <[EMAIL PROTECTED]>
+
+ * unverifiable_void_ptr_store_2.cs: Tests for using unmanaged pointers.
+ This test looks for void pointers.
+
+ * unverifiable_void_ptr_store_3.cs: Same.
+
+ * unverifiable_void_ptr_store.cs: Same.
+
+ * valid_merge_boxed_type_3.cs: Test merging a reference type diferent
than
+ System.Object and a boxed valuetype. This is hopefully the last issue of
+ merging stack frames.
+
+ * Makefile: compile .cs files with /unsafe switch.
+
2008-02-06 Rodrigo Kumpera <[EMAIL PROTECTED]>
* valid_boxed_enum_is_compatible_with_system_enum.cs: Added.
Modified: trunk/mono/mono/tests/verifier/Makefile
===================================================================
--- trunk/mono/mono/tests/verifier/Makefile 2008-02-08 14:18:17 UTC (rev
95249)
+++ trunk/mono/mono/tests/verifier/Makefile 2008-02-08 14:19:53 UTC (rev
95250)
@@ -4,7 +4,7 @@
compile-stamp: generate-stamp
for i in *.il; do ilasm2 $$i; done
- for i in *.cs; do gmcs $$i; done
+ for i in *.cs; do gmcs /unsafe $$i; done
touch compile-stamp
clean:
Added: trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store.cs
===================================================================
--- trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store.cs
2008-02-08 14:18:17 UTC (rev 95249)
+++ trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store.cs
2008-02-08 14:19:53 UTC (rev 95250)
@@ -0,0 +1,11 @@
+using System;
+
+public unsafe class Driver {
+ static int foo;
+ static void * bla;
+ public static int Main (string[] args) {
+ void * test = (void*)foo;
+ bla = test;
+ return 1;
+ }
+}
Added: trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_2.cs
===================================================================
--- trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_2.cs
2008-02-08 14:18:17 UTC (rev 95249)
+++ trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_2.cs
2008-02-08 14:19:53 UTC (rev 95250)
@@ -0,0 +1,9 @@
+using System;
+
+public unsafe class Driver {
+ static int foo;
+ public static int Main (string[] args) {
+ void * test = (void*)foo;
+ return 1;
+ }
+}
Added: trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_3.cs
===================================================================
--- trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_3.cs
2008-02-08 14:18:17 UTC (rev 95249)
+++ trunk/mono/mono/tests/verifier/unverifiable_void_ptr_store_3.cs
2008-02-08 14:19:53 UTC (rev 95250)
@@ -0,0 +1,12 @@
+using System;
+
+public unsafe class Driver {
+ static void* foo;
+ static int bar;
+
+ public static int Main (string[] args) {
+ if ((void*)bar > foo)
+ return 1;
+ return 0;
+ }
+}
Added: trunk/mono/mono/tests/verifier/valid_merge_boxed_type_3.cs
===================================================================
--- trunk/mono/mono/tests/verifier/valid_merge_boxed_type_3.cs 2008-02-08
14:18:17 UTC (rev 95249)
+++ trunk/mono/mono/tests/verifier/valid_merge_boxed_type_3.cs 2008-02-08
14:19:53 UTC (rev 95250)
@@ -0,0 +1,11 @@
+using System;
+using System.Reflection;
+using System.Reflection.Emit;
+
+class Driver {
+ public static int Main (string[] args) {
+ object[] o = new object[10];
+ o[5] = args == null ? (object)1 : "oi";
+ return 1;
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches