New test
authorMiguel de Icaza <miguel@gnome.org>
Thu, 14 Apr 2005 22:08:46 +0000 (22:08 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 14 Apr 2005 22:08:46 +0000 (22:08 -0000)
svn path=/trunk/mcs/; revision=43015

mcs/tests/Makefile
mcs/tests/test-365.cs [new file with mode: 0644]

index 481efb90326b4fb5929a3fdf8984c0764104929b..6ecfb270b9a46b9df82b25756d837faceb76138f 100644 (file)
@@ -35,7 +35,7 @@ USE_MCS_FLAGS :=
 NEW_TEST_SOURCES_common = xml-033 xml-034 xml-035 xml-036 test-329 2test-16 test-330 a-parameter5 test-331 test-332 \
                          test-333 test-311 test-335 test-336 test-337 test-287 test-338 test-339 test-341 test-334 test-342 \
                          test-344 test-345 test-346 test-347 test-348 test-349 test-350 test-351 test-352 test-353 test-354 test-355 \
-                         test-356 test-357 test-358 test-359 test-360 test-361 test-363 test-364 \
+                         test-356 test-357 test-358 test-359 test-360 test-361 test-363 test-364 test-365 \
        mtest-7-dll mtest-7-exe \
        mtest-8-dll mtest-8-exe
 
diff --git a/mcs/tests/test-365.cs b/mcs/tests/test-365.cs
new file mode 100644 (file)
index 0000000..d990c37
--- /dev/null
@@ -0,0 +1,20 @@
+// Compiler options: -unsafe
+using System.Runtime.InteropServices;
+
+[StructLayout(LayoutKind.Sequential)]
+internal unsafe struct _Port {
+       [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)] char[] port;
+       int a;
+}
+
+[StructLayout(LayoutKind.Sequential)]
+internal unsafe struct _Camera
+{
+       _Port           *port;
+}
+
+class d {
+       static void Main ()
+       {
+       }
+}