1 /* Tests of duplication. */
2 /* { dg-do compile } */
5 - (int) meth1; /* { dg-message "previous declaration" } */
6 - (void) meth1; /* { dg-error "duplicate declaration of method .\\-meth1." } */
10 + (void) meth1; /* { dg-message "previous declaration" } */
11 + (int) meth1; /* { dg-error "duplicate declaration of method .\\+meth1." } */
18 @implementation class3
19 - (int) meth1 { return 0; } /* { dg-message "previous definition" } */
20 - (int) meth1 { return 0; } /* { dg-error "redefinition of" } */
27 @implementation class4
28 + (void) meth1 {} /* { dg-message "previous definition" } */
29 + (void) meth1 {} /* { dg-error "redefinition of" } */