1 /* { dg-do compile } */
11 @implementation MyRootClass
14 @synthesize isa; /* { dg-error "misplaced .@synthesize. Objective-C.. construct" } */
16 @interface Test : MyRootClass
38 @synthesize; /* { dg-error "expected identifier" } */
39 @synthesize v1, ; /* { dg-error "expected identifier" } */
40 @synthesize v2, v3 = ; /* { dg-error "expected identifier" } */
41 @synthesize v4, v5=v6, v6 = v5,v7;
43 /* Some of the @synthesize above will fail due to syntax errors. The
44 compiler will then complain that the methods implementing the
45 properties are missing. That is correct, but we are not
46 interested. The following ones shut up the compiler. */
47 - (int) v1 { return v1; }
48 - (void) setV1: (int)a { v1 = a; }
49 - (int) v2 { return v2; }
50 - (void) setV2: (int)a { v2 = a; }
51 - (int) v3 { return v3; }
52 - (void) setV3: (int)a { v3 = a; }