Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-anon-71.cs
1 // Compiler options: -unsafe
2
3 using System;
4
5 class Program
6 {
7         private delegate int FdCb (int fd);
8         private static Errno ProcessFile (string path, FdCb cb)
9         {
10                 return Errno.Ok;
11         }
12
13         protected unsafe Errno OnReadHandle (string path, byte [] buf, long offset)
14         {
15                 Errno e = ProcessFile (path, delegate (int fd) {
16                         fixed (byte* pb = buf) {
17                                 return 5;
18                         }
19                 });
20                 return e;
21         }
22
23         public enum Errno
24         {
25                 Ok = 1
26         }
27         
28         public static void Main ()
29         {
30         }
31 }
32