|
|
|
|
@ -24,6 +24,14 @@ using System.Runtime.InteropServices;
@@ -24,6 +24,14 @@ using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
|
{ |
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 1)] |
|
|
|
|
internal struct PointerConstructor |
|
|
|
|
{ |
|
|
|
|
public unsafe PointerConstructor(void* pointer) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal class SizeofTest |
|
|
|
|
{ |
|
|
|
|
private struct StructWithStaticField |
|
|
|
|
@ -683,4 +691,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -683,4 +691,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal static class UnsafeObjectCreation |
|
|
|
|
{ |
|
|
|
|
private unsafe static readonly PointerConstructor pointerConstructor = new PointerConstructor(null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|