Support .pack and .size directives
MSDN-WhiteKnight opened this issue · comments
MSDN.WhiteKnight commented
ECMA 335 II.10.2 - Body of a type definition
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TestStruct
{
public int dummy;
}
Expected disassembly:
.class public sequential ansi sealed beforefieldinit CilTools.Tests.Common.TestStruct
extends [mscorlib]System.ValueType
{
.pack 1
.size 0
//...
}