2007-10-19 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / tests / test-124.cs
index c28d9899d654e4a392a0493a743f3c731ced01df..f904871e497e87f12832f3e475fd6462778a6440 100644 (file)
@@ -1,24 +1,57 @@
-using System.Drawing;
+using System;
 
-namespace N1
-{      
-       public class D
+class t {
+
+       void a ()
        {
-               public static int Main ()
-               {
-                       Rectangle rect = new Rectangle ();
-                       N (rect);
-                       
-                       return 0;
+               int b;
+               
+               try {
+                       b = 1;
+               } catch {
+                       b = 2;
                }
+       }
 
-               public static bool N (RectangleF rect)
-               {
-                       if (rect.X > rect.Y)
-                               return true;
-                       
-                       return false;
+       void b ()
+       {
+               int a;
+
+               try {
+                       a = 1;
+               } catch (Exception) {
+                       a = 2;
                }
        }
-}
 
+       void c ()
+       {
+               int a;
+
+               try {
+                       a = 2;
+               } catch (Exception e) {
+                       a = 0x3;
+               } catch {
+                       a = 0x1;
+               }
+       }
+
+       void d ()
+       {
+               int a;
+
+               try {
+                       a = 2;
+               } catch (Exception e) {
+                       a = 0x3;
+               } catch {
+                       a = 0x1;
+               } finally {
+                       a = 111;
+               }
+       }
+       
+       public static void Main () {}
+}
+