linux-packaging-mono/mcs/tests/test-anon-71.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
454 B
C#

// Compiler options: -unsafe
using System;
class Program
{
private delegate int FdCb (int fd);
private static Errno ProcessFile (string path, FdCb cb)
{
return Errno.Ok;
}
protected unsafe Errno OnReadHandle (string path, byte [] buf, long offset)
{
Errno e = ProcessFile (path, delegate (int fd) {
fixed (byte* pb = buf) {
return 5;
}
});
return e;
}
public enum Errno
{
Ok = 1
}
public static void Main ()
{
}
}