Searched refs:property (Results 1 - 25 of 167) sorted by relevance

1234567

/haiku-buildtools/gcc/gcc/testsuite/obj-c++.dg/property/
H A Dproperty-neg-6.mm1 /* Check for proper declaration of @property. */
8 @property int FooBar /* { dg-error "expected ';' at end of input" } */
H A Dat-property-1.mm9 @property; /* { dg-error "expected identifier" } */
10 @property int; /* { dg-error "expected identifier" } */
11 @property int a;
12 @property int b, c;
13 @property () int d; /* { dg-error "expected identifier" } */
14 @property (readonly) int e;
15 @property (readonly,) int f; /* { dg-error "expected identifier" } */
16 @property (xxx) int g; /* { dg-error "unknown property attribute" } */
17 @property (readonl
[all...]
H A Dat-property-18.mm6 /* Test that if you have a property declared in a class and a
8 at-property-16.m, but for a category. It is a separate file
16 @property (assign) id a;
17 @property (retain) id b;
18 @property int c;
19 @property (nonatomic) int d;
20 @property int e;
21 @property int f;
22 @property int g;
23 @property (readonl
[all...]
H A Dat-property-16.mm6 /* Test that if you have a property declared in a class and a
13 @property (assign) id a; /* { dg-message "originally specified here" } */
14 @property (retain) id b; /* { dg-message "originally specified here" } */
15 @property int c; /* { dg-message "originally specified here" } */
16 @property (nonatomic) int d; /* { dg-message "originally specified here" } */
17 @property int e; /* { dg-message "originally specified here" } */
18 @property int f; /* { dg-message "originally specified here" } */
19 @property int g; /* { dg-message "originally specified here" } */
20 @property (readonly) int h; /* Ok */
21 @property (readonl
[all...]
H A Dat-property-3.mm9 @property volatile int a; /* This is allowed */
10 @property extern int b; /* { dg-error "invalid type" } */
11 @property static int c; /* { dg-error "invalid type" } */
12 @property inline int d; /* { dg-error "declared as an .inline." } */
13 @property typedef int e; /* { dg-error "invalid type" } */
14 @property __thread int f; /* { dg-error "invalid type" } */
H A Dcxx-property-2.mm4 should be accepted for property getters and setters. */
10 @property (getter=namespace) int p0;
11 @property (setter=namespace:) int p1;
12 @property (getter=and) int p2;
13 @property (setter=and:) int p3;
14 @property (getter=class) int p4;
15 @property (setter=class:) int p5;
16 @property (getter=new) int p6;
17 @property (setter=new:) int p7;
18 @property (gette
[all...]
H A Dat-property-14.mm12 @property id property_a; /* { dg-warning "object property .property.a. has no .assign., .retain. or .copy. attribute" } */
15 @property (readonly) id property_b; /* No 'assign' warning (assign semantics do not matter if the property is readonly). */
16 @property id *property_c; /* No 'assign' warning (the type is not an Objective-C object). */
17 @property Class property_d; /* No 'assign' warning (Classes are static objects so assign semantics do not matter for them). */
18 @property MyRootClass *property_e; /* { dg-warning "object property .property
[all...]
H A Dat-property-15.mm3 /* { dg-options "-Wno-property-assign-default" } */
7 /* Test that -Wno-property-assign-default turns off all "object
8 property xxx has no assign, return or copy attribute" warnings. */
15 @property id property_a; /* Would normally generate a warning. */
16 @property (readonly) id property_b;
17 @property id *property_c;
18 @property Class property_d;
19 @property MyRootClass *property_e; /* Would normally generate a warning. */
H A Dat-property-4.mm12 - (void) mySetter: (int)property;
13 - (void) mySetterB: (int)property;
14 - (void) mySetter2: (int)property;
16 /* Test that all the new property attributes can be parsed. */
17 @property (assign) id property_a;
18 @property (copy) id property_b;
19 @property (nonatomic) int property_c;
20 @property (readonly) int property_d;
21 @property (readwrite) int property_e;
22 @property (retai
[all...]
H A Dat-property-20.mm6 /* Test that if you have a property declared in a class and a
7 sub-class, the types match (unless it's a readonly property, in
40 @property (assign) id <MyProtocolA> a; /* { dg-message "originally specified here" } */
41 @property int b; /* { dg-message "originally specified here" } */
42 @property float c; /* { dg-message "originally specified here" } */
43 @property (assign) MyRootClass *d; /* { dg-message "originally specified here" } */
44 @property (assign) MySubClass1 *e; /* { dg-message "originally specified here" } */
45 @property (assign, readonly) MySubClass1 *f; /* { dg-message "originally specified here" } */
46 @property (assign) MySubClass3 *g; /* { dg-message "originally specified here" } */
47 @property (assig
[all...]
H A Dat-property-28.mm4 /* Test errors when extending a property in a class extension. */
13 @property (readonly, retain) id property1; /* { dg-message "originally specified here" } */
14 @property (readonly) int property2; /* { dg-message "originally specified here" } */
15 @property (readonly, getter=y) int property3; /* { dg-message "originally specified here" } */
16 @property (readonly) int property4; /* Ok */
17 @property (readonly) int property5; /* { dg-message "originally specified here" } */
21 @property (readwrite, copy) id property1; /* { dg-warning "assign semantics attributes of property .property1. conflict with previous declaration" } */
22 @property (readwrite, nonatomic) int property2; /* { dg-warning ".nonatomic. attribute of property
[all...]
H A Dat-property-5.mm20 @property id property_a; /* { dg-warning "object property .property.a. has no .assign., .retain. or .copy. attribute" } */
22 @property int property_b = 4; /* { dg-error "expected" } */
23 @property (retain) int property_c; /* { dg-error ".retain. attribute is only valid for Objective-C objects" } */
24 @property (copy) int property_d; /* { dg-error ".copy. attribute is only valid for Objective-C objects" } */
26 @property (retain) id property_e;
27 @property (retain) id property_f;
28 @property (retain) id property_g;
29 @property (retai
[all...]
H A Dat-property-29.mm11 @property (getter) int property_a; /* { dg-error "missing .=. .after .getter. attribute." } */
12 @property (setter) int property_b; /* { dg-error "missing .=. .after .setter. attribute." } */
13 @property (assign, getter) int property_c; /* { dg-error "missing .=. .after .getter. attribute." } */
/haiku-buildtools/gcc/gcc/testsuite/objc.dg/property/
H A Dproperty-neg-6.m1 /* Check for proper declaration of @property. */
8 @property int FooBar /* { dg-error "expected ':', ',', ';', '\}' or '__attribute__' at end of input" } */
H A Dat-property-1.m9 @property; /* { dg-error "expected" } */
10 @property int; /* { dg-error "expected identifier" } */
12 @property int a;
13 @property int b, c;
14 @property () int d; /* { dg-error "expected identifier" } */
15 @property (readonly) int e;
16 @property (readonly,) int f; /* { dg-error "expected identifier" } */
17 @property (xxx) int g; /* { dg-error "unknown property attribute" } */
18 @property (readonl
[all...]
H A Dat-property-18.m6 /* Test that if you have a property declared in a class and a
8 at-property-16.m, but for a category. It is a separate file
16 @property (assign) id a;
17 @property (retain) id b;
18 @property int c;
19 @property (nonatomic) int d;
20 @property int e;
21 @property int f;
22 @property int g;
23 @property (readonl
[all...]
H A Dat-property-16.m6 /* Test that if you have a property declared in a class and a
13 @property (assign) id a;
14 @property (retain) id b;
15 @property int c;
16 @property (nonatomic) int d;
17 @property int e;
18 @property int f;
19 @property int g;
20 @property (readonly) int h;
21 @property (readonl
[all...]
H A Dat-property-3.m9 @property volatile int a; /* This is allowed */
10 @property extern int b; /* { dg-error "expected" } */
11 @property static int c; /* { dg-error "expected" } */
12 @property inline int d; /* { dg-error "expected" } */
13 @property typedef int e; /* { dg-error "expected" } */
14 @property __thread int f; /* { dg-error "expected" } */
H A Dat-property-14.m12 @property id property_a; /* { dg-warning "object property .property.a. has no .assign., .retain. or .copy. attribute" } */
15 @property (readonly) id property_b; /* No 'assign' warning (assign semantics do not matter if the property is readonly). */
16 @property id *property_c; /* No 'assign' warning (the type is not an Objective-C object). */
17 @property Class property_d; /* No 'assign' warning (Classes are static objects so assign semantics do not matter for them). */
18 @property MyRootClass *property_e; /* { dg-warning "object property .property
[all...]
H A Dat-property-15.m3 /* { dg-options "-Wno-property-assign-default" } */
7 /* Test that -Wno-property-assign-default turns off all "object
8 property xxx has no assign, return or copy attribute" warnings. */
15 @property id property_a; /* Would normally generate a warning. */
16 @property (readonly) id property_b;
17 @property id *property_c;
18 @property Class property_d;
19 @property MyRootClass *property_e; /* Would normally generate a warning. */
H A Dat-property-4.m12 - (void) mySetter: (int)property;
13 - (void) mySetterB: (int)property;
14 - (void) mySetter2: (int)property;
16 /* Test that all the new property attributes can be parsed. */
17 @property (assign) id property_a;
18 @property (copy) id property_b;
19 @property (nonatomic) int property_c;
20 @property (readonly) int property_d;
21 @property (readwrite) int property_e;
22 @property (retai
[all...]
H A Dat-property-20.m6 /* Test that if you have a property declared in a class and a
7 sub-class, the types match (unless it's a readonly property, in
40 @property (assign) id <MyProtocolA> a; /* { dg-message "originally specified here" } */
41 @property int b; /* { dg-message "originally specified here" } */
42 @property float c; /* { dg-message "originally specified here" } */
43 @property (assign) MyRootClass *d; /* { dg-message "originally specified here" } */
44 @property (assign) MySubClass1 *e; /* { dg-message "originally specified here" } */
45 @property (assign, readonly) MySubClass1 *f; /* { dg-message "originally specified here" } */
46 @property (assign) MySubClass3 *g; /* { dg-message "originally specified here" } */
47 @property (assig
[all...]
H A Dat-property-28.m4 /* Test errors when extending a property in a class extension. */
13 @property (readonly, retain) id property1; /* { dg-message "originally specified here" } */
14 @property (readonly) int property2; /* { dg-message "originally specified here" } */
15 @property (readonly, getter=y) int property3; /* { dg-message "originally specified here" } */
16 @property (readonly) int property4; /* Ok */
17 @property (readonly) int property5; /* { dg-message "originally specified here" } */
21 @property (readwrite, copy) id property1; /* { dg-warning "assign semantics attributes of property .property1. conflict with previous declaration" } */
22 @property (readwrite, nonatomic) int property2; /* { dg-warning ".nonatomic. attribute of property
[all...]
H A Dat-property-5.m20 @property id property_a; /* { dg-warning "object property .property.a. has no .assign., .retain. or .copy. attribute" } */
22 @property int property_b = 4; /* { dg-error "expected" } */
23 @property (retain) int property_c; /* { dg-error ".retain. attribute is only valid for Objective-C objects" } */
24 @property (copy) int property_d; /* { dg-error ".copy. attribute is only valid for Objective-C objects" } */
26 @property (retain) id property_e;
27 @property (retain) id property_f;
28 @property (retain) id property_g;
29 @property (retai
[all...]
H A Dat-property-29.m11 @property (getter) int property_a; /* { dg-error "missing .=. .after .getter. attribute." } */
12 @property (setter) int property_b; /* { dg-error "missing .=. .after .setter. attribute." } */
13 @property (assign, getter) int property_c; /* { dg-error "missing .=. .after .getter. attribute." } */

Completed in 135 milliseconds

1234567