1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
2 /* { dg-do compile } */
4 /* Test that each @synthesize is using a different instance variable,
5 and that it must belong to the class (not to a superclass). */
18 @synthesize v1 = v; /* { dg-warning "originally specified here" } */
19 @synthesize v2 = v; /* { dg-error "property .v2. is using the same instance variable as property .v1." } */
21 @interface Test2 : Test
26 @synthesize w1; /* { dg-error "ivar .w1. used by .@synthesize. declaration must be an existing ivar" } */
28 /* { dg-warning "incomplete implementation" "" { target *-*-* } 27 } */
29 /* { dg-warning "method definition for .-setW1:. not found" "" { target *-*-* } 27 } */
30 /* { dg-warning "method definition for .-w1. not found" "" { target *-*-* } 27 } */