X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fcustom-attr.cs;h=217a2ebaffe7117db1b2b6a9c8aceeaef82202db;hb=2530f7dccbdcbefa68979f25cfc282ca63da1fa4;hp=40dbae17ddb9c93060eeef27c4b87577892b720a;hpb=da4f9e9b2afb23791029d0bb09d78b868aabd870;p=mono.git diff --git a/mono/tests/custom-attr.cs b/mono/tests/custom-attr.cs index 40dbae17ddb..217a2ebaffe 100644 --- a/mono/tests/custom-attr.cs +++ b/mono/tests/custom-attr.cs @@ -99,6 +99,13 @@ namespace Test { if (typeof (Y).GetCustomAttributes (typeof (ZInterface), true).Length != 1) return 5; + if (!typeof (Y).IsDefined (typeof (ZInterface), true)) + return 6; + + // Test that synthetic methods have no attributes + if (typeof(int[,]).GetConstructor (new Type [] { typeof (int), typeof (int) }).GetCustomAttributes (true).Length != 0) + return 7; + return 0; } }