[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / test-567.cs
index 4e5b1feebaf81526f5b7b1b8a6d3617eac0b952e..424c7ff11db8f135eb8ac995dfb2a1fa90526e83 100644 (file)
@@ -1,13 +1,12 @@
 using System;
 using System.Reflection;
 using System.Runtime.InteropServices;
-using System.Runtime.CompilerServices;
 
 namespace preservesig_test
 {
        class Class1
        {
-               static int Main(string[] args)
+               public static int Main(string[] args)
                {
                        MethodInfo dofoo = typeof(TestClass).GetMethod("DoFoo");
                        if ((dofoo.GetMethodImplementationFlags() & MethodImplAttributes.PreserveSig) == 0)
@@ -34,7 +33,6 @@ namespace preservesig_test
                public event D e;
                
                [PreserveSig()]
-               [MethodImpl(MethodImplOptions.InternalCall,MethodCodeType=MethodCodeType.Runtime)]
                public int DoFoo()
                {
                        return 0;