[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-385.cs
blob379b5dddca8e42806c23a441a5714fdd754aabc6
1 using System;
2 using System.Reflection;
4 [AttributeUsage (AttributeTargets.All)]
5 public class DocAttribute : Attribute
7 public DocAttribute () {}
8 public DocAttribute (string s) {}
11 public delegate void Func<[Doc] TArg, [Doc ("ret!")] TRet> ();
13 class Test
15 public static int Main ()
17 Type[] targs = typeof (Func<,>).GetGenericArguments ();
18 if (targs[0].GetCustomAttributes (false).Length != 1)
19 return 1;
21 if (targs[1].GetCustomAttributes (false).Length != 1)
22 return 2;
24 Console.WriteLine ("OK");
25 return 0;