X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fbug-461867.cs;h=39290ab1eae4b85a7e0c83f4a8d4f54d2804a5c8;hb=aefc06ddf682848e3a6a4e0a534f443b335a6167;hp=eb2d89d63b4206474ce007028465218fedfbac73;hpb=738dd0681439177cca02b0264f8006e53cf7c56f;p=mono.git diff --git a/mono/tests/bug-461867.cs b/mono/tests/bug-461867.cs index eb2d89d63b4..39290ab1eae 100644 --- a/mono/tests/bug-461867.cs +++ b/mono/tests/bug-461867.cs @@ -1,12 +1,18 @@ using System; using System.Runtime.InteropServices; +[AttributeUsage (AttributeTargets.Method)] +sealed class MonoPInvokeCallbackAttribute : Attribute { + public MonoPInvokeCallbackAttribute (Type t) {} +} + namespace TestApp { public delegate char MyDelegate(int x); class Driver { + [MonoPInvokeCallbackAttribute (typeof (MyDelegate))] static char Test (int x) { return (char)x; } static int Main()