MIPS: Take operand size into account when inverting stack offsets
[mono.git] / mono / mini / objects.cs
index 3d849c64d053102816256281fcd9861c664dcda0..a684d1d001ac49bedb81ae8224ff7c2ae44a2261 100644 (file)
@@ -1500,5 +1500,29 @@ ncells ) {
                return 0;
        }
 
+       public static bool flag;
+
+       class B {
+
+               internal static B[] d;
+
+               static B () {
+                       flag = true;
+               }
+       }
+
+       [MethodImplAttribute (MethodImplOptions.NoInlining)]
+       static int regress_679467_inner () {
+               if (flag == true)
+                       return 1;
+               var o = B.d;
+               var o2 = B.d;
+               return 0;
+       }
+
+       static int test_0_multiple_cctor_calls_regress_679467 () {
+               flag = false;
+               return regress_679467_inner ();
+       }
 }