Added a bulk of tests from Mainsoft repository.
[mono.git] / mono / tests / custom-attr.cs
index 79b5fdf4bf38adc3ffd56486286b33e976f4fd5a..40dbae17ddb9c93060eeef27c4b87577892b720a 100644 (file)
@@ -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;
                }
        }