summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/property/property-neg-3.mm
blob: a749c28c69cf9a2968c69ff756f4777690665e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */

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

@implementation  Person
@dynamic firstName;
/* FIXME - there is a problem with the testuite in running the following test.  The compiler
   generates the messages, but the testsuite still complains.  */
/*@synthesize firstName;*/ /*  dg-error "property .firstName. already specified in .@dynamic."  */
                       /*  dg-message "originally specified here" "" { target *-*-* } 11  */
@end