1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
2 /* { dg-do compile } */
4 /* This test tests warnings on class extensions. */
13 - (int) test; /* { dg-message "previous declaration" } */
14 @property int count; /* { dg-message "originally specified here" } */
17 @interface MyObject ()
18 - (void) test; /* { dg-error "duplicate declaration of method .-test." } */
21 @interface MyObject ()
24 @interface MyObject ()
25 @property int count; /* { dg-error "redeclaration of property .count." } */