[interp] Remove unreachable code (#12411)
[mono-project.git] / mono / tests / classinit2.cs
blob2d07a0218bffdc384690ef44abab84c78cef7d49
1 class A {
2 static A() { System.Console.WriteLine("A"); M.a_run = true;}
3 public static void f() {}
5 class B {
6 static B() { System.Console.WriteLine("B"); A.f(); M.b_run = true;}
7 public static void f() {}
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;