* pinvoke2.cs: Add a test for #488670.
svn path=/trunk/mono/; revision=130257
+2009-03-26 Zoltan Varga <vargaz@gmail.com>
+
+ * pinvoke2.cs: Add a test for #488670.
+
2009-03-25 Mark Probst <mark.probst@gmail.com>
* interlocked-4.2.cs: New CompareExchange test (triggered register
return 1;
}
+
+ /*
+ * Marshalling of type 'object'
+ */
+
+ [DllImport ("libtest", EntryPoint="mono_test_marshal_class")]
+ public static extern SimpleClass mono_test_marshal_object (int i, int j, int k, object ss, int l);
+
+ public static int test_0_marshal_object () {
+ try {
+ mono_test_marshal_object (0, 0, 0, null, 0);
+ return 1;
+ } catch (Exception) {
+ return 0;
+ }
+ }
}