Browse Source

Add another int-guid pair test

pull/3413/head
ds5678 3 months ago
parent
commit
8de6585ba4
  1. 5
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/PointerArithmetic.cs

5
ICSharpCode.Decompiler.Tests/TestCases/Pretty/PointerArithmetic.cs

@ -114,6 +114,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
((Guid*)ptr)[2] = Guid.NewGuid();
}
public unsafe static void AssignmentIntPointerToGuidPointer_2(int* ptr)
{
*(Guid*)(ptr + 2) = Guid.NewGuid();
}
public unsafe static Guid AccessIntPointerToGuidPointer(int* ptr)
{
return ((Guid*)ptr)[2];

Loading…
Cancel
Save