[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-anon-176.cs
blobaeeb66dd6e3aefaee5fdd2288ce945fcfb20e203
1 using System;
3 namespace TestDelegateFinallyOut
5 class Test
7 static void CallDelegate (Action test)
9 throw new Exception ("test");
12 private static bool TestMethod (out int test)
14 try {
15 CallDelegate (delegate {
16 return;
17 });
18 } catch (Exception) {
19 Console.WriteLine ("caught exception");
20 } finally {
22 test = 1;
23 return false;
26 static int Main ()
28 int t;
29 TestMethod (out t);
30 if (t != 1)
31 return 1;
33 return 0;