linux-packaging-mono/mcs/tests/gtest-fixedbuffer-02.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
428 B
C#

// Compiler options: -unsafe
using System.Runtime.InteropServices;
public unsafe struct A
{
fixed byte fileid [DbConst.DB_FILE_ID_LEN];
}
public static class DbConst
{
public const int DB_FILE_ID_LEN = 20;
}
[StructLayout(LayoutKind.Sequential, Size=92)]
internal unsafe struct hci_dev_info {
public fixed sbyte name[8];
private fixed byte bdaddr[6];
hci_dev_info* foo;
}
class M
{
public static void Main ()
{
}
}