Debian Codegraph @

gcc/testsuite/obj-c++.dg/property/property-neg-3.mm

raw
1 /* { dg-do compile } */
2
3 @interface Person
4 {
5 char *firstName;
6 }
7 @property char *firstName;
8 @end
9
10 @implementation Person
11 @dynamic firstName; /* { dg-line firstName_first } */
12 @synthesize firstName; /* { dg-error "property .firstName. already specified in .@dynamic." } */
13 /* { dg-message "originally specified here" "" { target *-*-* } firstName_first } */
14 @end