a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
468 B
C#
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 () {
|
|
}
|
|
}
|
|
}
|