summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/property/property-neg-3.m
blob: 0b30931a8813c6bfbb54120bc3648ab11269305f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */

@interface Person 
{
  char *firstName;
}
@property char *firstName;
@end	

@implementation  Person
@dynamic firstName;
@synthesize firstName; /* { dg-error "property .firstName. already specified in .@dynamic." } */
                       /* { dg-message "originally specified here" "" { target *-*-* } 11 } */
@end