1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* { dg-do compile } */ @interface Person { char *fullName; } @property char *fullName; + (void) testClass; @end @implementation Person @synthesize fullName; + (void) testClass { self.fullName = "MyName"; /* { dg-error "request for member .fullName." } */ } @end