diff --git a/Examples/test-suite/csharp/csharp_exceptions_runme.cs b/Examples/test-suite/csharp/csharp_exceptions_runme.cs index 3c7c46bc6..1cd372f3e 100644 --- a/Examples/test-suite/csharp/csharp_exceptions_runme.cs +++ b/Examples/test-suite/csharp/csharp_exceptions_runme.cs @@ -1,4 +1,5 @@ using System; +using System.Threading; using csharp_exceptionsNamespace; public class runme @@ -183,8 +184,59 @@ public class runme } if (csharp_exceptions.exception_macro_run_flag) throw new Exception("exceptionmacrotest was executed"); + + // exceptions in multiple threads test + { + ThrowsClass throwsClass = new ThrowsClass(1234.5678); + const int NUM_THREADS = 8; + Thread[] threads = new Thread[NUM_THREADS]; + TestThread[] testThreads = new TestThread[NUM_THREADS]; + // invoke the threads + for (int i=0; i