[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-525.cs
blobf5008717b6e312b2a5b0d124b275441ebe3e749e
1 using System;
3 class X {
4 ~X ()
6 int id = 1;
7 Console.WriteLine ("DESTRUCTOR!" + id);
10 public static int Test1()
12 try {
13 return 8;
14 } catch (Exception) {}
15 System.Console.WriteLine("Shouldn't get here");
16 return 9;
19 public static void Test2()
21 int[] vars = { 3, 4, 5 };
23 foreach (int a in vars) {
24 try {
25 continue;
26 } catch (Exception) {
27 break;
32 public static void Main() {
33 Test1 ();
34 Test2 ();
36 try {
37 return;
38 } catch (Exception) {}
39 System.Console.WriteLine("Shouldn't get here");
40 return;