Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / classinit2.cs
1 class A {   
2   static A() { System.Console.WriteLine("A"); M.a_run = true;}
3   public static void f() {}
4 }
5 class B {
6   static B() { System.Console.WriteLine("B"); A.f(); M.b_run = true;}
7   public static void f() {}
8 }
9 class M {
10   public static bool b_run = false;
11   public static bool a_run = false;
12   public static int Main() { 
13         B.f(); 
14         if (!a_run)
15                 return 1;
16         if (!b_run)
17                 return 2;
18         return 0;
19   }
20 }