[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-418.cs
index acbb03841fc000231b7795713eeb44233e2db151..e939cb19b7a2686d6b9ce596b1aaa124619ccc90 100644 (file)
@@ -10,13 +10,18 @@ public class M3 : M1 {
        public static int Main () {
                if (new M3 ().Foo != "FOO")
                        return 1;
+                       
                /* Test that the EXPORTEDTYPES table is correctly set up */
-               if (typeof (M3).Assembly.GetTypes ().Length != 3)
+               // It should be 3 but we add 2 compiler generated <$AssemblyAttributes$....>
+               if (typeof (M3).Assembly.GetTypes ().Length != 3 + 2)
                        return 2;
+
                if (typeof (M3).Assembly.GetType ("M2") == null)
                        return 3;
+
                if (typeof (M3).Assembly.GetType ("M2") != typeof (M2))
-                       return 3;
+                       return 4;
+
                return 0;
        }
 }