Add assert when dllmap is disabled and fix support build in netcore mode
[mono-project.git] / mono / tests / exception21.cs
blob1456e46d878cde9936b8c7f94b48ab52c5fd04c7
1 using System;
2 using System.Threading;
4 public class Program {
6 public static void Main (string[] args) {
7 int caughts = 0;
8 int finallys = 0;
9 try {
10 try {
11 throw new Exception ();
12 } finally {
13 finallys++;
14 throw new Exception ();
16 } catch (Exception) {
17 caughts++;
18 Console.WriteLine ("Caught");
20 if (caughts != 1)
21 Environment.Exit (1);
22 if (finallys != 1)
23 Environment.Exit (2);
24 Console.WriteLine ("Exit");