Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc.dg / method-1.m
bloba73a0f4921d3b6e7dc8567e62c67aab25a7abf13
1 /* Tests of duplication.  */
2 /* { dg-do compile } */
4 @interface class1
5 - (int) meth1;
6 - (void) meth1;  /* { dg-error "duplicate declaration of method .\\-meth1." } */
7 @end
9 @interface class2
10 + (void) meth1;
11 + (int) meth1;  /* { dg-error "duplicate declaration of method .\\+meth1." } */
12 @end
14 @interface class3
15 - (int) meth1;
16 @end
18 @implementation class3
19 - (int) meth1 { return 0; } /* { dg-error "previous definition" } */
20 - (int) meth1 { return 0; } /* { dg-error "redefinition of" } */
21 @end
23 @interface class4
24 + (void) meth1;
25 @end
27 @implementation class4
28 + (void) meth1 {} /* { dg-error "previous definition" } */
29 + (void) meth1 {} /* { dg-error "redefinition of" } */
30 @end