diff options
author | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2002-12-19 03:35:31 +0300 |
---|---|---|
committer | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2002-12-19 03:35:31 +0300 |
commit | e324c6452d46ea7917912c167f39a312df4ecf92 (patch) | |
tree | b8fbcf05b577012721f7538222327d8c5684ee03 /mcs/tests/test-177.cs | |
parent | 01714dfb494c037f86d0eba76bd2873dbe8a4fac (diff) |
2002-12-18 Ravi Pratap <ravi@ximian.com>
* test-177.cs : Add. This doesn't pass yet because we don't have
ReturnTypeCustomAttributes working.
svn path=/trunk/mcs/; revision=9754
Diffstat (limited to 'mcs/tests/test-177.cs')
-rw-r--r-- | mcs/tests/test-177.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-177.cs b/mcs/tests/test-177.cs new file mode 100644 index 00000000000..96579a8b5af --- /dev/null +++ b/mcs/tests/test-177.cs @@ -0,0 +1,24 @@ +using System; +using System.Reflection; + +public class MethodAttribute : Attribute {} +public class ReturnAttribute : Attribute {} + +public class Test { + [Method] + [return: Return] + public void Method () {} + + public static int Main () { + + Type t = typeof(Test); + MethodInfo mi = t.GetMethod ("Method"); + ICustomAttributeProvider cap = mi.ReturnTypeCustomAttributes; + + if (cap != null) + return 0; + else + return 1; + } +} + |