summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0637-2.cs
blob: 6415d0b01837b8cefb65a5d70feaf175bda1da52 (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0637: The FieldOffset attribute is not allowed on static or const fields
// Line: 10

using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Explicit)]
struct GValue {
	[FieldOffset (4)]
        public const int value = 3;
}