2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0636.cs
blob418d08c7bc7d5494e4fc4e345f628731447ce253
1 // CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit)
2 // Line: 10
4 using System;
5 using System.Runtime.InteropServices;
7 namespace cs0636 {
8 struct GValue {
9 public string name;
10 [ FieldOffset (4) ] public int value;
13 class Tests {
14 public static void Main () {