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>2005-04-15 02:08:46 +0400
committerMiguel de Icaza <miguel@gnome.org>2005-04-15 02:08:46 +0400
commit0e7b2212a1e1103698abe9587652ec97a9d947a0 (patch)
tree41f4a8ec5afc46d1b5ff6c851fa4aa5f1c1d5015 /mcs/tests/test-365.cs
parent8a303a7d67c98133cfdb6ded8d0b95a20490d489 (diff)
New test
svn path=/trunk/mcs/; revision=43015
Diffstat (limited to 'mcs/tests/test-365.cs')
-rw-r--r--mcs/tests/test-365.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/test-365.cs b/mcs/tests/test-365.cs
new file mode 100644
index 00000000000..d990c37a605
--- /dev/null
+++ b/mcs/tests/test-365.cs
@@ -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 ()
+ {
+ }
+}