1 // Compiler options: -unsafe
4 using System
.Runtime
.CompilerServices
;
8 public fixed long FieldName
[32];
13 public static int Main ()
16 var f
= t
.GetField ("FieldName");
17 var fbas
= f
.GetCustomAttributes (typeof (FixedBufferAttribute
), true)[0] as FixedBufferAttribute
;
18 if (fbas
.Length
!= 32)
21 var fixed_type
= typeof (Foo
).GetNestedTypes ()[0];
22 if (fixed_type
.StructLayoutAttribute
.Pack
!= 8)
25 if (fixed_type
.StructLayoutAttribute
.Size
!= 256)