Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / exception12.cs
1 using System;
2
3 public class Test {
4
5         public static int Main (string[] args) {
6
7                 int c = 0;
8                 try {
9                         try {
10                                 c = 0;
11                         }
12                         catch (Exception e) {
13                                 Console.WriteLine("Exception: {0}", e.Message);
14                         }
15                         finally { 
16                                 Console.WriteLine("Finally... {0}", c++);
17                         }
18                 }
19                 finally {
20                         c++;
21                 }
22                 
23                 if (c != 2)
24                         return 1;
25                 
26                 return 0;
27         }
28 }