2008-06-24 Marek Safar <marek.safar@gmail.com>
authorMarek Safar <marek.safar@gmail.com>
Tue, 24 Jun 2008 12:47:33 +0000 (12:47 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 24 Jun 2008 12:47:33 +0000 (12:47 -0000)
A test for bug #401012

svn path=/trunk/mcs/; revision=106498

mcs/tests/gtest-partial-04-p2.cs [new file with mode: 0755]
mcs/tests/gtest-partial-04.cs [new file with mode: 0755]

diff --git a/mcs/tests/gtest-partial-04-p2.cs b/mcs/tests/gtest-partial-04-p2.cs
new file mode 100755 (executable)
index 0000000..5f97b6b
--- /dev/null
@@ -0,0 +1,4 @@
+[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Explicit)] 
+public partial struct Bug
+{
+}
diff --git a/mcs/tests/gtest-partial-04.cs b/mcs/tests/gtest-partial-04.cs
new file mode 100755 (executable)
index 0000000..aecef6b
--- /dev/null
@@ -0,0 +1,14 @@
+// Compiler options: gtest-partial-04-p2.cs
+
+public partial struct Bug
+{
+       [System.Runtime.InteropServices.FieldOffset(0)]               
+       public int Integer;
+}
+
+class C
+{
+       public static void Main ()
+       {
+       }
+}