Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-177.cs
1 using System;
2 using System.Reflection;
3
4 public class MethodAttribute : Attribute {}
5 public class ReturnAttribute : Attribute {}
6
7 public class Test {
8         [Method]
9         [return: Return]
10         public void Method () {}
11
12         public static int Main () {
13
14                 Type t = typeof(Test);
15                 MethodInfo mi = t.GetMethod ("Method");
16                 ICustomAttributeProvider cap = mi.ReturnTypeCustomAttributes;
17
18                 if (cap != null) 
19                         return 0;                       
20                 else
21                         return 1;
22         }
23 }
24