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

cs0625-1.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3864d4352ca3d717a89b09f9f70208981ebf359a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0625: Instance field of type marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute.

using System;
using System.Runtime.InteropServices;

namespace cs0625 {
	[StructLayout(LayoutKind.Explicit)]
	class GValue {
		public int foo;
	}
	
	class Tests {
		public static void Main () {
		}
	}
}