2009-09-02 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0625.cs
blobb6ce8c064dd4a578eb3d4e0fc4c77a633667c579
1 // cs0625.cs: `cs0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
2 // Line: 11
4 using System;
5 using System.Runtime.InteropServices;
7 namespace cs0625 {
8 [StructLayout(LayoutKind.Explicit)]
9 struct GValue {
10 public string name;
11 [ FieldOffset (4) ] public int value;
14 class Tests {
15 public static void Main () {