// Check that the exception is only rethrown in
// the appropriate catch clauses
+ // This doesn't work currently, see
+ // http://bugzilla.ximian.com/show_bug.cgi?id=68552
+
+ /*
try {
}
catch {}
}
catch (Exception) {
}
+ */
result |= 32;
// Check that the exception is properly rethrown
if (result != 59)
return 1;
+ // Test from #68552
+ try {
+ try {
+ Run ();
+ } catch (Exception ex) {
+ }
+
+ return 2;
+ }
+ catch (ThreadAbortException ex) {
+ Thread.ResetAbort ();
+ }
+
return 0;
}
+
+ public static void Run ()
+ {
+ try {
+ Thread.CurrentThread.Abort ();
+ } catch (Exception ex) {
+ throw new Exception ("other");
+ }
+ }
}