summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/property/property-neg-4.m
blob: cc25d84af9bce4043d446efeb7d283e722e60c4e (plain)
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