"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / test-63.cs
blob4b2ca9a64a0ffaff8d142a805c5e3363a588bd7a
1 //
2 // Tests rethrowing an exception
3 //
4 using System;
6 class X {
7 public static int Main ()
9 bool one = false, two = false;
11 try {
12 try {
13 throw new Exception ();
14 } catch (Exception e) {
15 one = true;
16 Console.WriteLine ("Caught");
17 throw;
19 } catch {
20 two = true;
21 Console.WriteLine ("Again");
24 if (one && two){
25 Console.WriteLine ("Ok");
26 return 0;
27 } else
28 Console.WriteLine ("Failed");
29 return 1;