Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-124.cs
1 using System;
2
3 class t {
4
5         void a ()
6         {
7                 int b;
8                 
9                 try {
10                         b = 1;
11                 } catch {
12                         b = 2;
13                 }
14         }
15
16         void b ()
17         {
18                 int a;
19
20                 try {
21                         a = 1;
22                 } catch (Exception) {
23                         a = 2;
24                 }
25         }
26
27         void c ()
28         {
29                 int a;
30
31                 try {
32                         a = 2;
33                 } catch (Exception e) {
34                         a = 0x3;
35                 } catch {
36                         a = 0x1;
37                 }
38         }
39
40         void d ()
41         {
42                 int a;
43
44                 try {
45                         a = 2;
46                 } catch (Exception e) {
47                         a = 0x3;
48                 } catch {
49                         a = 0x1;
50                 } finally {
51                         a = 111;
52                 }
53         }
54         
55         public static void Main () {}
56 }
57