[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-decl-expr-01.cs
blob880d3344585a87c342b090cb2fef7e07f4497fd4
1 using System;
3 class DeclarationExpression
5 public static int Main ()
7 Out (out int o);
8 if (o != 3)
9 return 1;
11 if (Out (out int o1)) {
12 if (o1 != 3)
13 return 2;
16 Out (out var o3);
17 if (o3 != 3)
18 return 4;
20 Out2 (str: "b", v: out var o5);
21 if (o5 != 9)
22 return 7;
24 Console.WriteLine ("ok");
25 return 0;
28 static bool Out (out int value)
30 value = 3;
31 return true;
34 static bool Out2 (out int v, string str)
36 v = 9;
37 return true;