static int a = b = 5;
static int b = 0;
- static int Main ()
+ public static int Main ()
{
if (a != 5 || b != 0)
return 1;
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
+}