summaryrefslogtreecommitdiff
path: root/mcs/errors/cs7055.cs
blob: f2c15a8d2253553a418fa2e6f583a7de287bf998 (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS7055: Unmanaged type `ByValArray' is only valid for fields
// Line: 10

using System;
using System.Runtime.InteropServices;

public class main {

    [DllImport("libname", EntryPoint = "scumbag")]
    static extern int scumbag(ref int X, [MarshalAs(UnmanagedType.ByValArray)] ref byte[] fb);
}