2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / tests / exception15.cs
1 using System;
2
3 class Tests {
4         public static int Main(){
5                 int i = 0;
6                 try{
7                         try {
8                                 throw new NotImplementedException();
9                         }
10                         finally {
11                                 i++;
12                                 Console.WriteLine("Finally called");
13                         }
14                 } catch(NotImplementedException){
15                         i++;
16                         Console.WriteLine("Exception ignored");
17                 }
18
19                 if (i != 2)
20                         return 1;
21
22                 return 0;
23         }
24 }