1 /* https://bugzilla.xamarin.com/show_bug.cgi?id=60862 */
3 using System
.Threading
;
5 namespace StackOverflowTest
9 static bool fault
= false;
10 static Exception ex
= null;
12 public static int Main(string[] args
)
14 Thread t
= new Thread (Run
);
19 Console
.WriteLine ("fault occured, but no exception object available");
22 bool is_stackoverlfow
= ex
is StackOverflowException
;
23 Console
.WriteLine ("fault occured: ex = " + is_stackoverlfow
);
24 return is_stackoverlfow
? 0 : 3;
27 Console
.WriteLine("no fault");
35 } catch(Exception e
) {
41 static void Execute ()
46 static bool WaitOne (bool killProcessOnInterrupt
= false, bool throwOnInterrupt
= false)
50 } catch(ThreadInterruptedException e
) { }