2009-03-09 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Mon, 9 Mar 2009 10:38:11 +0000 (10:38 -0000)
committerZoltan Varga <vargaz@gmail.com>
Mon, 9 Mar 2009 10:38:11 +0000 (10:38 -0000)
* custom-attr.cs: Add a test for #483247.

svn path=/trunk/mono/; revision=128865

mono/tests/ChangeLog
mono/tests/custom-attr.cs

index 65405b9b895d3d2fb747f4e1fc05b371b2219de9..1b8d2a49cde13d92cb0b202f14b876ae4525b989 100644 (file)
@@ -1,3 +1,7 @@
+2009-03-09  Zoltan Varga  <vargaz@gmail.com>
+
+       * custom-attr.cs: Add a test for #483247.
+
 2009-03-08  Zoltan Varga  <vargaz@gmail.com>
 
        * gchandles.cs: New test.
index 40dbae17ddb9c93060eeef27c4b87577892b720a..39784146e7905ee9d586bc5e642c6946eedd3408 100644 (file)
@@ -99,6 +99,9 @@ namespace Test {
                        if (typeof (Y).GetCustomAttributes (typeof (ZInterface), true).Length != 1)
                                return 5;
 
+                       if (!typeof (Y).IsDefined (typeof (ZInterface), true))
+                               return 6;
+
                        return 0;
                }
        }