X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fcustom-attr.cs;h=40dbae17ddb9c93060eeef27c4b87577892b720a;hb=f73e83935184e83818e67e111cce69aa0d4ff537;hp=79b5fdf4bf38adc3ffd56486286b33e976f4fd5a;hpb=d56758124087ba74bbf1fc7fd3028d2af570140d;p=mono.git diff --git a/mono/tests/custom-attr.cs b/mono/tests/custom-attr.cs index 79b5fdf4bf3..40dbae17ddb 100644 --- a/mono/tests/custom-attr.cs +++ b/mono/tests/custom-attr.cs @@ -40,7 +40,10 @@ namespace Test { } } - class ZAttribute : Attribute { + interface ZInterface { + } + + class ZAttribute : Attribute, ZInterface { } [X, Z, Serializable] @@ -93,6 +96,9 @@ namespace Test { catch { } + if (typeof (Y).GetCustomAttributes (typeof (ZInterface), true).Length != 1) + return 5; + return 0; } }