2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs1708.cs
blob9b1286ef43f7a6b5b05dbf955406451423a19bf7
1 // CS1708: `S.array': Fixed size buffers can only be accessed through locals or fields
2 // Line: 27
3 // Compiler options: -unsafe
5 using System;
7 unsafe struct S
9 public fixed int array [2];
12 class C
14 unsafe public S Get ()
16 return new S ();
20 public class Tester
22 public static void Main() { }
24 unsafe void setName()
26 C c = new C();
27 c.Get ().array [1] = 44;