Author: zoltan
Date: 2005-04-04 11:49:16 -0400 (Mon, 04 Apr 2005)
New Revision: 42528
Modified:
trunk/mono/mono/tests/ChangeLog
trunk/mono/mono/tests/invoke.cs
Log:
2005-04-04 Zoltan Varga <[EMAIL PROTECTED]>
* invoke.cs: Add new test.
Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog 2005-04-04 15:47:10 UTC (rev 42527)
+++ trunk/mono/mono/tests/ChangeLog 2005-04-04 15:49:16 UTC (rev 42528)
@@ -1,3 +1,7 @@
+2005-04-04 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * invoke.cs: Add new test.
+
2005-03-31 Zoltan Varga <[EMAIL PROTECTED]>
* stack-overflow.cs: New tests, not yet enabled.
Modified: trunk/mono/mono/tests/invoke.cs
===================================================================
--- trunk/mono/mono/tests/invoke.cs 2005-04-04 15:47:10 UTC (rev 42527)
+++ trunk/mono/mono/tests/invoke.cs 2005-04-04 15:49:16 UTC (rev 42528)
@@ -6,6 +6,11 @@
public struct SimpleStruct {
public bool a;
public bool b;
+
+ public SimpleStruct (bool arg) {
+ a = arg;
+ b = false;
+ }
}
static void Test2 () {
@@ -60,6 +65,11 @@
if ((((int)(args [0])) != 20) || (((int)(args [1])) != 30))
return 2;
+
+ // Test the return value from ConstructorInfo.Invoke when a
precreated
+ // valuetype is used.
+ ConstructorInfo ci = typeof (SimpleStruct).GetConstructor (new
Type [] { typeof (bool) });
+ SimpleStruct res2 = (SimpleStruct)ci.Invoke (ss, new object []
{ false });
return 0;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches