Author: zoltan
Date: 2007-05-23 17:54:11 -0400 (Wed, 23 May 2007)
New Revision: 77873

Modified:
   trunk/mono/mono/tests/ChangeLog
   trunk/mono/mono/tests/delegate.cs
Log:
2007-05-24  Zoltan Varga  <[EMAIL PROTECTED]>

        * delegate.cs: Add a multicast delegate test.


Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog     2007-05-23 21:47:20 UTC (rev 77872)
+++ trunk/mono/mono/tests/ChangeLog     2007-05-23 21:54:11 UTC (rev 77873)
@@ -1,3 +1,7 @@
+2007-05-24  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * delegate.cs: Add a multicast delegate test.
+
 2007-05-23  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * pinvoke2.cs libtest.c: Fix up asany in/out tests.

Modified: trunk/mono/mono/tests/delegate.cs
===================================================================
--- trunk/mono/mono/tests/delegate.cs   2007-05-23 21:47:20 UTC (rev 77872)
+++ trunk/mono/mono/tests/delegate.cs   2007-05-23 21:54:11 UTC (rev 77873)
@@ -138,5 +138,19 @@
                return (int)l (55);
        }
 
+       static int count = 0;
+
+       public static void inc_count () {
+               count ++;
+       }
+
+       public static int test_0_multicast () {
+               SimpleDelegate d = new SimpleDelegate (inc_count);
+
+               d += inc_count;
+
+               d ();
+               return count == 2 ? 0 : 1;
+       }
 }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to