X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fcustom-attr.cs;h=217a2ebaffe7117db1b2b6a9c8aceeaef82202db;hb=1aec88fea61b4657ac4447386381937b49296a38;hp=40dbae17ddb9c93060eeef27c4b87577892b720a;hpb=b39d5edf62fb3908e10647e1a7e60dadeb88b2be;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; } }