Bump API snapshot submodule
[mono.git] / mcs / tests / test-349.cs
index 040c6c3e87f5c5fc06f0a0dce015219fd55d1d91..0e3b29ffa48be8b6a755b11561b63b588e737e15 100644 (file)
@@ -46,7 +46,7 @@ class Test
        static int a = b = 5;
        static int b = 0;
                
-       static int Main ()
+       public static int Main ()
        {
                if (a != 5 || b != 0)
                        return 1;
@@ -54,17 +54,7 @@ class Test
                if ((typeof (X2).Attributes & TypeAttributes.BeforeFieldInit) == 0)
                        return 2;
                
-#if NET_2_0
-               ConstructorInfo mi = typeof(C).GetConstructors ()[0];
-        MethodBody mb = mi.GetMethodBody();
-               
-               if (mb.GetILAsByteArray ().Length != 7) {
-                       Console.WriteLine("Optimization failed");
-                       return 3;
-               }
-#endif
-                       
                Console.WriteLine ("OK");
                return 0;
        }
-}
\ No newline at end of file
+}