From daa7f7879defe03a8211ff16a5c3009fd0bad6a0 Mon Sep 17 00:00:00 2001 From: ds5678 <49847914+ds5678@users.noreply.github.com> Date: Tue, 25 Feb 2025 14:12:58 -0800 Subject: [PATCH] Add uint pointer method --- .../TestCases/Pretty/PointerArithmetic.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/PointerArithmetic.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/PointerArithmetic.cs index 07991187e..a39524972 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/PointerArithmetic.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/PointerArithmetic.cs @@ -44,6 +44,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty return ((int*)ptr)[2]; } + public unsafe static uint AccessGuidPointerToUIntPointer(Guid* ptr) + { + return ((uint*)ptr)[2]; + } + public unsafe static void AssignmentIntPointer(int* ptr) { ptr[2] = 1;