2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mono / tests / exception10.cs
blobfca30cac3fe5937e798f820e32813b5e98c1c447
1 using System;
3 public class Test {
5 public static int Main (string[] args) {
7 int c = 0;
8 try
10 throw new Exception("Test exception");
12 catch (Exception e)
14 Console.WriteLine("Exception: {0}", e.Message);
16 finally
18 Console.WriteLine("Finally... {0}", c++);
21 if (c != 1)
22 return 1;
24 return 0;