Merge pull request #5390 from kumpera/fix_58637
[mono.git] / mono / tests / exception5.cs
1 using System;
2
3 public class Ex {
4
5         public static int test (int a) {
6                 int res;
7                 int fin = 0;
8                 try {
9                         try {
10                                 res = 10/a;
11                         } catch (DivideByZeroException ex) {
12                                 res = 34;
13                         } catch {
14                                 res = 22;
15                         } 
16                 } catch {
17                         res = 44;
18                 } finally {
19                         fin += 1;
20                 }
21                 return fin;
22         }
23         public static int Main () {
24                 if (test(0) != 1)
25                         return 1;
26                 return 0;
27         }
28 }
29
30