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

29 lines
468 B
C#

// test for bug #57151
using System;
using System.Runtime.InteropServices;
namespace Test {
[StructLayout(LayoutKind.Explicit)]
struct foo1 {
public static int foo;
}
[StructLayout(LayoutKind.Explicit)]
struct foo2 {
public static int foo;
[FieldOffset(0)] public int value;
}
[StructLayout(LayoutKind.Explicit)]
class foo3 {
public static int foo;
[FieldOffset(0)] public int value;
}
class Tests {
public static void Main () {
}
}
}