Merge pull request #5636 from BrzVlad/fix-xmm-scan
[mono.git] / mcs / tests / test-519.cs
index 1c78dbebe6061860f844837208656a7053453b95..8b8bd6bf2e8a7290d2d665e6a7dd7722437b2f8b 100644 (file)
@@ -1,13 +1,23 @@
+using System;
+
 class Foo {
-       static int Main ()
+       public static int Main ()
        {
                try {
                        f ();
                        return 1;
                } catch {
-                       return 0;
                }
+
+               try {
+                       f2 ();
+                       return 2;
+               } catch (ApplicationException) {
+               }
+
+               return 0;
        }
+
        static void f ()
        {
                try {
@@ -20,4 +30,15 @@ class Foo {
        skip:
                ;
        }
+
+       static void f2 ()
+       {
+               try {
+                       goto FinallyExit;
+               } finally {
+                       throw new ApplicationException ();
+               }
+       FinallyExit:
+               Console.WriteLine ("Too late");
+       }
 }