2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mono / tests / exception2.cs
blobf298b8fda7cee75ede3a8462ce86cafa235bde75
1 using System;
3 public class Ex2 {
5 public static int test (int a) {
6 int res;
7 res = 10/a;
8 return res;
10 public static int Main () {
11 int res = 1;
12 try {
13 test(1);
14 test(0);
15 } catch {
16 res = 0;
18 return res;