Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / mcs / tests / test-anon-73.cs
index 182d2d35d6f1e6df299afeffbe9c967f21731a27..7d6fbf270091a9beebcd01e810cb4697aa58076a 100644 (file)
@@ -1,10 +1,13 @@
 using System;
 using System.Threading;
 
+// Cloning mechanism manual tests
+
 delegate void D (object o);
 
 class T {
-        static void Main () {
+       public static void Main ()
+       {
                        D d = delegate (object state) {
                        try {
                        } catch {
@@ -12,7 +15,17 @@ class T {
                        } 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))
+                       {
+                       }
+               });
+       }               
 }