2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs1708.cs
blobefc47cdb167b880b86b9823132e14428eb283056
1 // cs1708.cs: 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;