[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-185.cs
blobb9dc49336f9f63015cbe6e92124684912e3f9adc
1 using System;
3 class X
5 public static int Test (int x)
7 for (;;) {
8 if (x != 1)
9 x--;
10 else
11 break;
12 return 5;
14 return 0;
17 public static int Main ()
19 if (Test (1) != 0)
20 return 1;
22 if (Test (2) != 5)
23 return 2;
25 return 0;