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:
authorRaja R Harinath <harinath@hurrynot.org>2004-05-07 14:08:33 +0400
committerRaja R Harinath <harinath@hurrynot.org>2004-05-07 14:08:33 +0400
commit56974f2ad0da505efcc5657d49508344bf84bd6a (patch)
tree1ad57df0f2844cc9b3bdf896cb89e04532715ecf /mcs/errors/cs0636.cs
parent7d07cb3c6c1305f56b801c3c0ee3f74e1bee356f (diff)
New tests.
svn path=/trunk/mcs/; revision=26892
Diffstat (limited to 'mcs/errors/cs0636.cs')
-rw-r--r--mcs/errors/cs0636.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs0636.cs b/mcs/errors/cs0636.cs
new file mode 100644
index 00000000000..1a0ed8fb2e7
--- /dev/null
+++ b/mcs/errors/cs0636.cs
@@ -0,0 +1,16 @@
+// CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit)
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace cs0636 {
+ struct GValue {
+ public string name;
+ [ FieldOffset (4) ] public int value;
+ }
+
+ class Tests {
+ public static void Main () {
+ }
+ }
+}