2002-01-02 Ravi Pratap <ravi@ximian.com>
[mono.git] / mcs / tests / test-18.cs
1 using System;
2
3 class X {
4         static int i;
5         static int j;
6         
7         static void m ()
8         {
9                 i = 0;
10                 j = 0;
11                 
12                 try {
13                         throw new ArgumentException ("Blah");
14                 } catch (ArgumentException){
15                         i = 1;
16                 } catch (Exception){
17                         i = 2;
18                 } finally {
19                         j = 1;
20                 }
21         }
22
23         static int Main ()
24         {
25                 m ();
26                 if (i != 1)
27                         return 1;
28                 if (j != 1)
29                         return 2;
30
31                 return 0;
32         }
33 }