Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / mcs / tests / gtest-450.cs
index 541f5e3d817247782da92ab38278cc85afd86eb4..8c1d9c8fd200783fd10d2848acc2b5168ed9ab67 100644 (file)
@@ -5,14 +5,14 @@ using System.Reflection;
 
 class Program {
 
-       static int Main ()
+       public static int Main ()
        {
                PortableExecutableKinds pekind;
                ImageFileMachine machine;
 
                typeof (Program).Module.GetPEKind (out pekind, out machine);
 
-               if ((pekind & PortableExecutableKinds.ILOnly) != 0)
+               if ((pekind & PortableExecutableKinds.ILOnly) == 0)
                        return 1;
 
                if ((pekind & PortableExecutableKinds.Required32Bit) == 0)