diff --git a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/GetDelegateForFunctionPointerTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/GetDelegateForFunctionPointerTests.cs index abcf514822786d..466c2609345874 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/GetDelegateForFunctionPointerTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/GetDelegateForFunctionPointerTests.cs @@ -10,7 +10,6 @@ namespace System.Runtime.InteropServices.Tests { - [ActiveIssue("https://github.com/dotnet/runtime/issues/39187", TestPlatforms.Browser)] public class GetDelegateForFunctionPointerTests { [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotMonoAOT))] @@ -154,9 +153,10 @@ public void GetDelegateForFunctionPointer_CantCast_ThrowsInvalidCastException() } public delegate void GenericDelegate(T t); - public delegate void NonGenericDelegate(string t); - public delegate void OtherNonGenericDelegate(string t); + public delegate void NonGenericDelegate(int i); + public delegate void OtherNonGenericDelegate(int i); - private static void Method(string s) { } + [UnmanagedCallersOnly] + private static void Method(int i) { } } }