Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs0625.cs
1 // CS0625: `CS0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
2 // Line: 11
3
4 using System;
5 using System.Runtime.InteropServices;
6
7 namespace CS0625 {
8         [StructLayout(LayoutKind.Explicit)]
9         struct GValue {
10                 public string name;
11                 [ FieldOffset (4) ] public int value;
12         }
13         
14         class Tests {
15                 public static void Main () {
16                 }
17         }
18 }