Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-anon-176.cs
1 using System;
2
3 namespace TestDelegateFinallyOut
4 {
5         class Test
6         {
7                 static void CallDelegate (Action test)
8                 {
9                         throw new Exception ("test");
10                 }
11
12                 private static bool TestMethod (out int test)
13                 {
14                         try {
15                                 CallDelegate (delegate {
16                                         return;
17                                 });
18                         } catch (Exception) {
19                                 Console.WriteLine ("caught exception");
20                         } finally {
21                         }
22                         test = 1;
23                         return false;
24                 }
25
26                 static int Main ()
27                 {
28                         int t;
29                         TestMethod (out t);
30                         if (t != 1)
31                                 return 1;
32
33                         return 0;
34                 }
35         }
36 }