Author: miguel
Date: 2005-04-14 18:08:46 -0400 (Thu, 14 Apr 2005)
New Revision: 43015
Added:
trunk/mcs/tests/test-365.cs
Modified:
trunk/mcs/tests/Makefile
Log:
New test
Modified: trunk/mcs/tests/Makefile
===================================================================
--- trunk/mcs/tests/Makefile 2005-04-14 20:48:11 UTC (rev 43014)
+++ trunk/mcs/tests/Makefile 2005-04-14 22:08:46 UTC (rev 43015)
@@ -35,7 +35,7 @@
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
Added: trunk/mcs/tests/test-365.cs
===================================================================
--- trunk/mcs/tests/test-365.cs 2005-04-14 20:48:11 UTC (rev 43014)
+++ trunk/mcs/tests/test-365.cs 2005-04-14 22:08:46 UTC (rev 43015)
@@ -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 ()
+ {
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches