Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / filter-stack.cs
1 using System;
2
3 public struct sa {
4         public int a;
5         public int b;
6         public int c;
7         public int d;
8 }
9
10 public struct sb {
11         public sa a;
12         public sa b;
13         public sa c;
14         public sa d;
15 }
16
17 public struct sc {
18         public sb a;
19         public sb b;
20         public sb c;
21         public sb d;
22 }
23
24 public struct sd {
25         public sc a;
26         public sc b;
27         public sc c;
28         public sc d;
29 }
30
31 public struct se {
32         public sd a;
33         public sd b;
34         public sd c;
35         public sd d;
36 }
37
38 public class main {
39         public static int heusl (se x) {
40                 Console.WriteLine ("within");
41                 return 123;
42         }
43
44         public static void thrower () {
45                 try {
46                         throw new Exception ();
47                 } finally {
48                         Console.WriteLine ("before");
49                         heusl (new se ());
50                         Console.WriteLine ("after");
51                 }
52         }
53
54         public static int Main () {
55                 try {
56                         thrower ();
57                 } catch {
58                         Console.WriteLine ("back");
59                 }
60                 return 0;
61         }
62 }