[xbuild] Vbc task - make error column check a little non-specific.
[mono.git] / mono / tests / custom-attr.cs
index 40dbae17ddb9c93060eeef27c4b87577892b720a..217a2ebaffe7117db1b2b6a9c8aceeaef82202db 100644 (file)
@@ -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;
                }
        }