2009-11-17 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0208-8.cs
blobc0b10b3268e142121f130cf9c38e0d903380d009
1 // cs0208-8.cs: Cannot take the address of, get the size of, or declare a pointer to a managed type `_Port'
2 // Line: 16
3 // Compiler options: -unsafe
5 using System.Runtime.InteropServices;
7 [StructLayout(LayoutKind.Sequential)]
8 internal unsafe struct _Port {
9 [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)] char[] port;
12 unsafe class d {
13 static void Main ()
15 _Port * port = null;