2 using System.Diagnostics;
3 using System.Threading;
4 using System.Threading.Tasks;
8 /* expected exit code: 1 */
9 static void Main (string[] args)
11 if (Environment.GetEnvironmentVariable ("TEST_UNHANDLED_EXCEPTION_HANDLER") != null)
12 AppDomain.CurrentDomain.UnhandledException += (s, e) => {};
14 throw new AppDomainUnloadedException ();