Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-250.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b524fcee65132b1463827a74da7a5c405ee86be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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 () {
		}
	}
}