Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@ -0,0 +1,46 @@
// Compiler options: -unsafe
using System;
using System.Runtime.InteropServices;
[StructLayout (LayoutKind.Auto, CharSet = CharSet.Auto)]
struct S
{
public unsafe fixed byte o[6];
}
class A
{
public static int Main ()
{
Type t = typeof (S);
var sa = t.StructLayoutAttribute;
if (sa.Value != LayoutKind.Auto)
return 1;
if (sa.CharSet != CharSet.Auto)
return 2;
if (sa.Pack != 8)
return 3;
if (sa.Size != 0)
return 4;
t = t.GetNestedTypes ()[0];
sa = t.StructLayoutAttribute;
if (sa.Value != LayoutKind.Sequential)
return 11;
if (sa.CharSet != CharSet.Auto)
return 12;
if (sa.Pack != 8)
return 13;
if (sa.Size != 6)
return 14;
return 0;
}
}