Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2001-12-13 02:20:55 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-12-13 02:20:55 +0300
commit13118210953ca87875e44ceb9ca6353bb505a363 (patch)
treeb64a5664618e48fcb63a853b4d4478075accbeee /mcs/errors/bug3.cs
parent5caa0bd00fda4c3a82afd303b8d5fce1ba131f1d (diff)
Add error cs0121
svn path=/trunk/mcs/; revision=1562
Diffstat (limited to 'mcs/errors/bug3.cs')
-rwxr-xr-xmcs/errors/bug3.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/bug3.cs b/mcs/errors/bug3.cs
new file mode 100755
index 00000000000..711b79c4b2e
--- /dev/null
+++ b/mcs/errors/bug3.cs
@@ -0,0 +1,16 @@
+using System.Runtime.InteropServices;
+
+[StructLayout (LayoutKind.Explicit)]
+struct A {
+ [FieldOffset (0)]
+ public int a;
+ [FieldOffset (4)]
+ public int b;
+}
+
+class X {
+ static void Main ()
+ {
+ }
+}
+