Skip to content

Commit d05fc87

Browse files
Mark test method as unsafe to fix CS0214 build error
Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com>
1 parent c7189a0 commit d05fc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Runtime/tests/System.Reflection.Tests/CustomAttributeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private unsafe class ClassWithGenericEnumAttribute { }
301301

302302
[Fact]
303303
[ActiveIssue("https://github.com/dotnet/runtime/issues/123878", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot))]
304-
public void CustomAttributeCtor_WithGenericEnumArgument_DecodesCorrectly()
304+
public unsafe void CustomAttributeCtor_WithGenericEnumArgument_DecodesCorrectly()
305305
{
306306
// This test ensures correct reflection behavior when loading a custom attribute
307307
// whose constructor argument is a generic enum instance involving a function pointer array.

0 commit comments

Comments
 (0)