Switch to compiler-tester
[mono.git] / mcs / tests / a-capture2.cs
diff --git a/mcs/tests/a-capture2.cs b/mcs/tests/a-capture2.cs
deleted file mode 100644 (file)
index 21fe237..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// This test checks various uses of captured local variables
-//
-using System;
-
-delegate void S ();
-
-class X {
-       static int Main ()
-       {
-               int a = 1;
-               Console.WriteLine ("A is = " + a);
-               int c = a;
-               Console.WriteLine (c);
-               if (a != 1){
-                       return 1;
-               }
-               
-               S b = delegate {
-                       if (a != 1)
-                               Environment.Exit (1);
-                       Console.WriteLine ("in Delegate");
-                       a = 2;
-                       if (a != 2)
-                               Environment.Exit (2);
-                       Console.WriteLine ("Inside = " + a);
-                       a = 3;
-                       Console.WriteLine ("After = " + a);
-               };
-               if (a != 1)
-                       return 3;
-               b ();
-               if (a != 3)
-                       return 4;
-               Console.WriteLine ("Back, got " + a);
-               Console.WriteLine ("Test is ok");
-               return 0;
-       }
-}