Author: zoltan
Date: 2005-03-06 13:13:10 -0500 (Sun, 06 Mar 2005)
New Revision: 41483
Removed:
trunk/mono/mono/tests/delegate4.cs
Modified:
trunk/mono/mono/tests/ChangeLog
Log:
2005-03-06 Zoltan Varga <[EMAIL PROTECTED]>
* delegate4.cs: Remove this, this is already tested in pinvoke3.cs.
Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog 2005-03-06 13:47:13 UTC (rev 41482)
+++ trunk/mono/mono/tests/ChangeLog 2005-03-06 18:13:10 UTC (rev 41483)
@@ -1,3 +1,7 @@
+2005-03-06 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * delegate4.cs: Remove this, this is already tested in pinvoke3.cs.
+
2005-03-04 Zoltan Varga <[EMAIL PROTECTED]>
* remoting1.cs: Add new regression test.
Deleted: trunk/mono/mono/tests/delegate4.cs
===================================================================
--- trunk/mono/mono/tests/delegate4.cs 2005-03-06 13:47:13 UTC (rev 41482)
+++ trunk/mono/mono/tests/delegate4.cs 2005-03-06 18:13:10 UTC (rev 41483)
@@ -1,34 +0,0 @@
-using System;
-using System.Threading;
-using System.Runtime.InteropServices;
-using System.Runtime.Remoting.Messaging;
-
-class Test {
- public delegate int SimpleDelegate (int a, int b);
-
- [DllImport ("libtest", EntryPoint="mono_invoke_delegate")]
- static extern int mono_invoke_delegate (SimpleDelegate d);
-
- public static int Add (int a, int b) {
- Console.WriteLine ("Test.Add from delegate: " + a + " + " + b);
- return a + b;
- }
-
- public static int Add2 (int a, int b) {
- Console.WriteLine ("Test.Add2 from delegate: " + a + " + " +
b);
- return a + b;
- }
-
- static int Main () {
- SimpleDelegate d = new SimpleDelegate (Add);
- SimpleDelegate d2 = new SimpleDelegate (Add2);
-
- if (mono_invoke_delegate (d) != 5)
- return 1;
-
- if (mono_invoke_delegate (d2) != 5)
- return 1;
-
- return 0;
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches