2007-09-07 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / tests / async-exceptions.cs
1 //
2 // Test whenever the runtime unwinder can deal with exceptions raised in the method
3 // prolog or epilog
4 //
5 using System;
6
7 public class Tests {
8
9         // Async exceptions will be raised while executing this method
10         static void foo () {
11                 for (int i = 0; i < 10; ++i)
12                         ;
13         }
14
15         public static int Main (String[] args) {
16                 try {
17                         foo ();
18                 } catch (NullReferenceException ex) {
19                         return 0;
20                 }
21
22                 return 0;
23         }
24 }