* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / test-anon-71.cs
blobc93ac8c52201fbc91910f4038bf4cd448a181884
1 // Compiler options: -unsafe
3 using System;
5 class Program
7 private delegate int FdCb (int fd);
8 private static Errno ProcessFile (string path, FdCb cb)
10 return Errno.Ok;
13 protected unsafe Errno OnReadHandle (string path, byte [] buf, long offset)
15 Errno e = ProcessFile (path, delegate (int fd) {
16 fixed (byte* pb = buf) {
17 return 5;
19 });
20 return e;
23 public enum Errno
25 Ok = 1
28 public static void Main ()