/haiku-buildtools/gcc/gcc/testsuite/obj-c++.dg/property/ |
H A D | property-neg-6.mm | 1 /* Check for proper declaration of @property. */ 8 @property int FooBar /* { dg-error "expected ';' at end of input" } */
|
H A D | at-property-1.mm | 9 @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 D | at-property-18.mm | 6 /* 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 D | at-property-16.mm | 6 /* 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 D | at-property-3.mm | 9 @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 D | cxx-property-2.mm | 4 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 D | at-property-14.mm | 12 @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 D | at-property-15.mm | 3 /* { 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 D | at-property-4.mm | 12 - (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 D | at-property-20.mm | 6 /* 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 D | at-property-28.mm | 4 /* 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 D | at-property-5.mm | 20 @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 D | at-property-29.mm | 11 @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 D | property-neg-6.m | 1 /* Check for proper declaration of @property. */ 8 @property int FooBar /* { dg-error "expected ':', ',', ';', '\}' or '__attribute__' at end of input" } */
|
H A D | at-property-1.m | 9 @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 D | at-property-18.m | 6 /* 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 D | at-property-16.m | 6 /* 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 D | at-property-3.m | 9 @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 D | at-property-14.m | 12 @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 D | at-property-15.m | 3 /* { 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 D | at-property-4.m | 12 - (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 D | at-property-20.m | 6 /* 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 D | at-property-28.m | 4 /* 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 D | at-property-5.m | 20 @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 D | at-property-29.m | 11 @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." } */
|