summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/property/property-neg-4.m
blob: 960c6d633720c13d483522e7dbe96dcc31e9312b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Property cannot be accessed in class method. */
/* { dg-do compile } */

@interface Person 
{
}
@property char *fullName;
+ (void) testClass;
@end	

@implementation  Person
@property char *fullName;
+ (void) testClass {
	fullName = "MyName"; /* { dg-error "property 'fullName' accessed in class method" } */
}
@end