Switch to compiler-tester
[mono.git] / mcs / tests / a-capture10.cs
diff --git a/mcs/tests/a-capture10.cs b/mcs/tests/a-capture10.cs
deleted file mode 100644 (file)
index 065f7c2..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// This test exercises the access to a field instance from an instance
-// method that has an anonymous method.
-// 
-using System;
-
-class S {
-       delegate void T ();
-
-       T t;
-
-       int f;
-
-       public void Test ()
-       {
-               // The loop just forces the creation of a helper class, so
-               // that the anonymous method is not placed side-by-side this
-               // method.
-               int a = 1;
-               for (int i = a; i < 10; i++){
-                       int j = i;
-                       t = delegate {
-                               Console.WriteLine ("Before: {0} {1} {2}", f, i, j);
-                               f = i;
-                       };
-               }
-       }
-       
-       static int Main ()
-       {
-           S s = new S ();
-           s.Test ();
-           s.t ();
-           if (s.f == 10)
-                   return 0;
-           Console.WriteLine ("Failed:" + s.f);
-           return 1;
-       }
-}
-       
-