repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
errors
/
cs0625-1.cs
blob
3864d4352ca3d717a89b09f9f70208981ebf359a
1
// CS0625: Instance field of type marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute.
2
3
using
System
;
4
using
System
.
Runtime
.
InteropServices
;
5
6
namespace
cs0625
{
7
[
StructLayout
(
LayoutKind
.
Explicit
)]
8
class
GValue
{
9
public int
foo
;
10
}
11
12
class
Tests
{
13
public static void
Main
() {
14
}
15
}
16
}