Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

17 lines
325 B
C#

using System;
using System.Runtime.InteropServices;
[StructLayout (LayoutKind.Explicit, Size = 16)]
public struct Foo {
[FieldOffset (0)] public ushort Bar;
[FieldOffset (2)] public ushort Baz;
[FieldOffset (4)] public uint Gazonk;
}
class Babar {
}
class Locke {
public int [] integers = new int [] { 1, 2, 3, 4 };
}