[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-897.cs
1 using System;
2
3 class X
4 {
5         static int Foo ()
6         {
7                 throw new ApplicationException ();
8         }
9
10         public static int Main ()
11         {
12                 try {
13                         var b = Foo () is object;
14                         return 1;
15                 } catch (ApplicationException) {
16                 }
17
18                 try {
19                         var b = Foo () as object;
20                         return 2;
21                 } catch (ApplicationException) {
22                 }
23
24                 return 0;
25         }
26 }