Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / unhandled-exception-9.cs
1 using System;
2 using System.Diagnostics;
3 using System.Threading;
4 using System.Threading.Tasks;
5
6 class Driver
7 {
8         /* expected exit code: 1 */
9         static void Main (string[] args)
10         {
11                 if (Environment.GetEnvironmentVariable ("TEST_UNHANDLED_EXCEPTION_HANDLER") != null)
12                         AppDomain.CurrentDomain.UnhandledException += (s, e) => {};
13
14                 throw new AppDomainUnloadedException ();
15         }
16 }