2009-12-07 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / exceptions.cs
index fefe52dc5fb316de8ea4f684700177007807c24d..22cffb1711a3dac6203ad5aed914ccb82d8a0b12 100644 (file)
@@ -2529,5 +2529,27 @@ class Tests {
         catch {
         }
     }
+
+       private static void do_raise () {
+               throw new System.Exception ();
+       }
+
+       private static int int_func (int i) {
+               return i;
+       }
+
+       // #559876
+       public static int test_8_local_deadce_causes () {
+      int myb = 4;
+  
+      try {
+        myb = int_func (8);
+        do_raise();
+        myb = int_func (2);
+      } catch (System.Exception) {
+                 return myb;
+         }
+         return 0;
+       }
 }