Merge pull request #5406 from kumpera/fix_12157
[mono.git] / mono / tests / bug-461867.cs
index eb2d89d63b4206474ce007028465218fedfbac73..39290ab1eae4b85a7e0c83f4a8d4f54d2804a5c8 100644 (file)
@@ -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()