X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fmarshal.cs;h=1213f8c5cbf6ec4746c6d26c5157f403ef680bb1;hb=932a58ea407d6878d610cbe516d901293977aba1;hp=aadf7adf7438f77b1ae5730d66532a7695dffc2f;hpb=811674bc6331c98d33134e2a37a7c7dd66402227;p=mono.git diff --git a/mono/tests/marshal.cs b/mono/tests/marshal.cs index aadf7adf743..1213f8c5cbf 100644 --- a/mono/tests/marshal.cs +++ b/mono/tests/marshal.cs @@ -8,12 +8,18 @@ using System.Runtime.InteropServices; public class Tests { + [AttributeUsage (AttributeTargets.Method)] + sealed class MonoPInvokeCallbackAttribute : Attribute { + public MonoPInvokeCallbackAttribute (Type t) {} + } + public static int Main (string[] args) { return TestDriver.RunTests (typeof (Tests), args); } public delegate int SimpleDelegate (int a); + [MonoPInvokeCallback (typeof (SimpleDelegate))] public static int delegate_test (int a) { return a + 1;