Skip to content

Commit

Permalink
[mono][wasm] Use [UnmanagedCallersOnly] in GetDelegateForFunctionPoin…
Browse files Browse the repository at this point in the history
…terTests so it works on wasm.

Fixes dotnet#39187.
  • Loading branch information
vargaz committed Jul 21, 2023
1 parent fce5227 commit 43e76e3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down Expand Up @@ -154,9 +153,10 @@ public void GetDelegateForFunctionPointer_CantCast_ThrowsInvalidCastException()
}

public delegate void GenericDelegate<T>(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) { }
}
}

0 comments on commit 43e76e3

Please sign in to comment.