diff --git a/src/mono/wasm/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs b/src/mono/wasm/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs index e1b435be0b6af7..d943062a512ecc 100644 --- a/src/mono/wasm/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs @@ -448,7 +448,7 @@ public void UnmanagedCallersOnly_Namespaced(BuildArgs buildArgs, RunHost host, s public class Test { - public static int Main() + public unsafe static int Main() { ((delegate* unmanaged)&A.Conflict.C)(); ((delegate* unmanaged)&B.Conflict.C)();