Skip to content

Commit 8de6585

Browse files
committed
Add another int-guid pair test
1 parent 8c29144 commit 8de6585

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ public unsafe static void AssignmentIntPointerToGuidPointer(int* ptr)
114114
((Guid*)ptr)[2] = Guid.NewGuid();
115115
}
116116

117+
public unsafe static void AssignmentIntPointerToGuidPointer_2(int* ptr)
118+
{
119+
*(Guid*)(ptr + 2) = Guid.NewGuid();
120+
}
121+
117122
public unsafe static Guid AccessIntPointerToGuidPointer(int* ptr)
118123
{
119124
return ((Guid*)ptr)[2];

0 commit comments

Comments
 (0)