Author: zoltan
Date: 2005-06-28 01:47:02 -0400 (Tue, 28 Jun 2005)
New Revision: 46622
Modified:
trunk/mono/mono/tests/ChangeLog
trunk/mono/mono/tests/pinvoke2.cs
Log:
2005-06-27 Zoltan Varga <[EMAIL PROTECTED]>
* pinvoke2.cs: Add test for #75374.
Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog 2005-06-28 05:46:15 UTC (rev 46621)
+++ trunk/mono/mono/tests/ChangeLog 2005-06-28 05:47:02 UTC (rev 46622)
@@ -1,3 +1,9 @@
+2005-06-27 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * pinvoke2.cs: Add test for #75374.
+
+ * Makefile.am pinvoke18.cs pinvoke2.cs: Merge pinvoke18 into pinvoke2.
+
2005-06-15 Zoltan Varga <[EMAIL PROTECTED]>
* Makefile.am (testaot): Use JITTEST_PROG_RUN for compiling the AOT
module.
Modified: trunk/mono/mono/tests/pinvoke2.cs
===================================================================
--- trunk/mono/mono/tests/pinvoke2.cs 2005-06-28 05:46:15 UTC (rev 46621)
+++ trunk/mono/mono/tests/pinvoke2.cs 2005-06-28 05:47:02 UTC (rev 46622)
@@ -862,6 +862,11 @@
[MarshalAs(UnmanagedType.LPWStr)] string s,
int length );
+ [DllImport("libtest", EntryPoint="test_lpwstr_marshal",
CharSet=CharSet.Unicode)]
+ private static extern string mono_test_marshal_lpwstr_marshal2(
+ string s,
+ int length );
+
public static int test_0_pass_return_lwpstr () {
string s = "ABC";
@@ -869,6 +874,11 @@
if (res != "ABC")
return 1;
+
+ string res2 = mono_test_marshal_lpwstr_marshal2 (s, s.Length);
+
+ if (res2 != "ABC")
+ return 2;
return 0;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches