Author: marek
Date: 2008-01-03 06:56:42 -0500 (Thu, 03 Jan 2008)
New Revision: 92164

Modified:
   trunk/mcs/tests/test-anon-73.cs
Log:
2008-01-03  Marek Safar  <[EMAIL PROTECTED]>

        A test for bug #351157
        


Modified: trunk/mcs/tests/test-anon-73.cs
===================================================================
--- trunk/mcs/tests/test-anon-73.cs     2008-01-03 11:56:14 UTC (rev 92163)
+++ trunk/mcs/tests/test-anon-73.cs     2008-01-03 11:56:42 UTC (rev 92164)
@@ -1,10 +1,13 @@
 using System;
 using System.Threading;
 
+// Cloning mechanism manual tests
+
 delegate void D (object o);
 
 class T {
-        static void Main () {
+       static void Main ()
+       {
                        D d = delegate (object state) {
                        try {
                        } catch {
@@ -12,7 +15,17 @@
                        } finally {
                        }
                        };
-               }
+       }
+               
+       static void Test_1 ()
+       {
+               System.Threading.ThreadPool.QueueUserWorkItem(delegate(object o)
+               {
+                       using (System.Threading.Timer t = new 
System.Threading.Timer (null, null, 1, 1))
+                       {
+                       }
+               });
+       }               
 }
 
 

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

Reply via email to