Merge pull request #5390 from kumpera/fix_58637
[mono.git] / mono / tests / exception10.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                         {
10                                 throw new Exception("Test exception");
11                         }
12                 catch (Exception e)
13                         {
14                                 Console.WriteLine("Exception: {0}", e.Message);
15                         }
16                 finally
17                         { 
18                                 Console.WriteLine("Finally... {0}", c++);
19                         }
20
21                 if (c != 1)
22                         return 1;
23                 
24                 return 0;
25         }
26 }