Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / mcs / tests / test-18.cs
index efa05510a15a1c13cf888a81260e6ba91cda0725..97c25bfca23e7a6c372ff7ce8889dc0f3e0e002a 100644 (file)
@@ -20,7 +20,19 @@ class X {
                }
        }
 
-       static int Main ()
+       static int ret (int a)
+       {
+               try {
+                       if (a == 1)
+                               throw new Exception ();
+                       
+                       return 1;
+               } catch {
+                       return 2;
+               }
+       }
+       
+       public static int Main ()
        {
                m ();
                if (i != 1)
@@ -28,6 +40,13 @@ class X {
                if (j != 1)
                        return 2;
 
+               if (ret (1) != 2)
+                       return 3;
+
+               if (ret (10) != 1)
+                       return 4;
+               
                return 0;
        }
 }
+