Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0214-9.cs
1 // CS214: Pointers and fixed size buffers may only be used in an unsafe context
2 // Line: 21
3 // Compiler options: -unsafe
4
5 public unsafe delegate int* Bar ();
6
7 class X
8 {
9         unsafe static int* Test ()
10         {
11                 return null;
12         }
13
14         static void Main ()
15         {
16                 Bar b;
17                 unsafe {
18                         b = Test;
19                 }
20                 
21                 b ();
22         }
23 }