Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / exit-stress-threadpool.cs
1 // https://bugzilla.novell.com/show_bug.cgi?id=593955
2 using System;
3 using System.Threading;
4
5 public class Tests
6 {
7         public static void Main (String[] args) {
8                 new Thread (delegate () {
9                                 Thread.Sleep (100);
10                                 Environment.Exit (0);
11                 }).Start ();
12
13                 while (true) {
14                         Action a = delegate () {
15                         };
16                         a.BeginInvoke (null, null);
17                 }
18         }
19 }