2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-514.cs
blob70d1edd01f9fab31f699c490ee2b5f693eab40b2
1 // Compiler options: -warnaserror -warn:2
3 using System;
4 class X {
6 public static void HandleConflict (int a) {
7 if (a != 1)
8 goto throwException;
9 if (a != 2)
10 goto throwException;
11 return;
12 throwException:
13 throw new Exception ();
16 static int Main ()
18 int ret = 1;
19 try { HandleConflict (1); }
20 catch {
21 try { HandleConflict (2); }
22 catch { ret = 0; }
24 return ret;