1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
5 /* This test tests warnings on class extensions. */
14 - (int) test; /* { dg-message "previous declaration" } */
15 @property int count; /* { dg-message "originally specified here" } */
18 @interface MyObject ()
19 - (void) test; /* { dg-error "duplicate declaration of method .-test." } */
22 @interface MyObject ()
25 @interface MyObject ()
26 @property int count; /* { dg-error "redeclaration of property .count." } */