/haiku-buildtools/gcc/gcc/testsuite/objc.dg/ |
H A D | missing-proto-2.m | 1 /* Test for graceful handling of missing protocol declarations. */ 5 void *protRef = @protocol(Missing); /* { dg-error "cannot find protocol declaration for .Missing." } */
|
H A D | keywords-2.m | 2 'protocol', 'selector', finally', 'synchronized', 'interface', 11 int protocol = defs * 2; 12 int selector = protocol * 2;
|
H A D | fwd-proto-1.m | 8 @protocol Bar; 9 @protocol Boo; 11 @protocol Foo 13 - (id <Baz>)anotherMethod; /* { dg-error "annot find protocol declaration" } */ 16 @protocol Bar <Boo> 18 - (id <Baz>)anotherMethod; /* { dg-error "annot find protocol declaration" } */ 26 @protocol Boo <Bar> /* { /*dg*/-error "has circular dependency" } */
|
H A D | protocol-forward-1.m | 5 real (ie, we saw a full @protocol definition with list of methods), 6 and not just forward-references (ie, "@protocol NSObject;"). */ 10 @protocol MyProtocol; 12 @protocol MyProtocol2 16 @interface MyClass <MyProtocol> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 22 @interface MyClass2 (Category) <MyProtocol> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 25 @protocol MyProtocol3 <MyProtocol> /* Ok */
|
H A D | enhanced-proto-1.m | 2 /* Test use of @optional/@required keywords in @protocol class. */ 5 @protocol MyProto1 15 @protocol MyProto2 <MyProto1>
|
H A D | proto-lossage-5.m | 5 @protocol _MyProtocol; 14 @protocol _MyProtocol
|
H A D | proto-lossage-3.m | 2 a protocol with no instance/class methods respectively. 13 @protocol NoInstanceMethods 17 @protocol NoClassMethods 24 protocol_getMethodDescription (@protocol(NoInstanceMethods), @selector(name), YES, YES); 25 protocol_getMethodDescription (@protocol(NoInstanceMethods), @selector(name), YES, NO); 26 protocol_getMethodDescription (@protocol(NoClassMethods), @selector(name), YES, YES); 27 protocol_getMethodDescription (@protocol(NoClassMethods), @selector(name), YES, NO);
|
H A D | protocol-forward-2.m | 5 real (ie, we saw a full @protocol definition with list of methods), 6 and not just forward-references (ie, "@protocol NSObject;"). This 11 @protocol MyProtocol; 13 @interface MyClass <MyProtocol> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 17 @protocol MyProtocol2 <MyProtocol> 21 @interface MyClass2 <MyProtocol2> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 26 @protocol MyProtocol3 <MyProtocol2> 30 @interface MyClass3 <MyProtocol3> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 36 @protocol MyProtocol4 <MyProtocol3, MyProtocol2> 40 @interface MyClass4 <MyProtocol4> /* { dg-warning "definition of protocol [all...] |
H A D | class-extension-2.m | 8 /* First, a simple test where a plain class has a protocol attached to 16 @protocol MyProtocol 26 /* { dg-warning "class .MyObject. does not fully implement the .MyProtocol. protocol" "" { target *-*-* } 24 } */ 35 @protocol MyProtocol2 39 @protocol MyProtocol3 52 /* { dg-warning "class .MyObject2. does not fully implement the .MyProtocol. protocol" "" { target *-*-* } 50 } */ 54 /* { dg-warning "class .MyObject2. does not fully implement the .MyProtocol2. protocol" "" { target *-*-* } 50 } */ 56 /* { dg-warning "class .MyObject2. does not fully implement the .MyProtocol3. protocol" "" { target *-*-* } 50 } */
|
/haiku-buildtools/gcc/gcc/testsuite/objc/execute/ |
H A D | protocol-isEqual-1.m | 2 /* Test that a protocol is equal to itself. */ 6 @protocol Foo 12 Protocol *protocol = @protocol(Foo); 14 if (!protocol_isEqual (protocol, protocol))
|
H A D | protocol-isEqual-2.m | 6 @protocol Foo1 10 @protocol Foo2 16 if (protocol_isEqual (@protocol(Foo1), @protocol(Foo2)))
|
H A D | formal_protocol-5.m | 7 /* Test defining a protocol, and accessing it using @protocol */ 9 @protocol Evaluating 13 /* A class adopting the protocol */ 26 Protocol *protocol = @protocol (Evaluating); 28 if (strcmp (protocol_getName(protocol), "Evaluating"))
|
H A D | formal_protocol-6.m | 7 /* Test defining a protocol, and accessing it using @protocol */ 9 @protocol Evaluating 13 /* Without a class adopting the protocol - this doesn't work 18 Protocol *protocol = @protocol (Evaluating); 20 if (strcmp (protocol_getName(protocol), "Evaluating"))
|
H A D | protocol-isEqual-3.m | 2 /* Test that a protocol is not equal to nil. */ 6 @protocol Foo 12 if (protocol_isEqual (@protocol(Foo), nil))
|
H A D | protocol-isEqual-4.m | 2 /* Test that a protocol is not equal to something which is not a protocol. */ 6 @protocol Foo 13 if (protocol_isEqual (@protocol(Foo), (id)objc_getClass("Protocol")))
|
/haiku-buildtools/gcc/gcc/testsuite/obj-c++.dg/attributes/ |
H A D | proto-attribute-4.mm | 4 /* Test that you get a warning when an unknown protocol attribute is ignored. */ 9 @protocol MyProtocol /* { dg-warning "ignored" } */ 14 @protocol MyProtocol2; /* { dg-warning "ignored" } */ 24 if (@protocol (MyProtocol) == @protocol (MyProtocol2))
|
/haiku-buildtools/gcc/gcc/testsuite/objc.dg/attributes/ |
H A D | proto-attribute-4.m | 4 /* Test that you get a warning when an unknown protocol attribute is ignored. */ 9 @protocol MyProtocol 14 @protocol MyProtocol2; /* { dg-warning "ignored" } */ 24 if (@protocol (MyProtocol) == @protocol (MyProtocol2))
|
H A D | proto-attribute-3.m | 4 /* Test deprecate attribute with normal @protocol declarations. */ 11 @protocol DeprecatedProtocol1 15 @protocol NonDeprecatedProtocol1 19 @protocol Protocol2 <DeprecatedProtocol1> /* { dg-warning "is deprecated" } */ 23 @protocol Protocol3 <NonDeprecatedProtocol1> 27 @protocol Protocol4 <NonDeprecatedProtocol1, DeprecatedProtocol1> /* { dg-warning "is deprecated" } */ 55 Protocol *p1 = @protocol (DeprecatedProtocol1); /* { dg-warning "is deprecated" } */ 56 Protocol *p2 = @protocol (NonDeprecatedProtocol1);
|
/haiku-buildtools/gcc/gcc/testsuite/obj-c++.dg/ |
H A D | keywords-2.mm | 2 'protocol', 'selector', finally', 'synchronized', 'interface', 11 int protocol = defs * 2; 12 int selector = protocol * 2;
|
H A D | protocol-forward-1.mm | 5 real (ie, we saw a full @protocol definition with list of methods), 6 and not just forward-references (ie, "@protocol NSObject;"). */ 10 @protocol MyProtocol; 12 @protocol MyProtocol2 16 @interface MyClass <MyProtocol> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 22 @interface MyClass2 (Category) <MyProtocol> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 25 @protocol MyProtocol3 <MyProtocol> /* Ok */
|
H A D | enhanced-proto-1.mm | 1 /* Test use of @optional/@required keywords in @protocol class. */ 4 @protocol MyProto1 14 @protocol MyProto2 <MyProto1>
|
H A D | proto-lossage-5.mm | 5 @protocol _MyProtocol; 14 @protocol _MyProtocol
|
H A D | proto-lossage-3.mm | 2 a protocol with no instance/class methods respectively. 13 @protocol NoInstanceMethods 17 @protocol NoClassMethods 24 protocol_getMethodDescription (@protocol(NoInstanceMethods), @selector(name), YES, YES); 25 protocol_getMethodDescription (@protocol(NoInstanceMethods), @selector(name), YES, NO); 26 protocol_getMethodDescription (@protocol(NoClassMethods), @selector(name), YES, YES); 27 protocol_getMethodDescription (@protocol(NoClassMethods), @selector(name), YES, NO);
|
H A D | protocol-forward-2.mm | 5 real (ie, we saw a full @protocol definition with list of methods), 6 and not just forward-references (ie, "@protocol NSObject;"). This 11 @protocol MyProtocol; 13 @interface MyClass <MyProtocol> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 17 @protocol MyProtocol2 <MyProtocol> 21 @interface MyClass2 <MyProtocol2> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 26 @protocol MyProtocol3 <MyProtocol2> 30 @interface MyClass3 <MyProtocol3> /* { dg-warning "definition of protocol .MyProtocol. not found" } */ 36 @protocol MyProtocol4 <MyProtocol3, MyProtocol2> 40 @interface MyClass4 <MyProtocol4> /* { dg-warning "definition of protocol [all...] |
H A D | class-extension-2.mm | 8 /* First, a simple test where a plain class has a protocol attached to 16 @protocol MyProtocol 26 /* { dg-warning "class .MyObject. does not fully implement the .MyProtocol. protocol" "" { target *-*-* } 24 } */ 35 @protocol MyProtocol2 39 @protocol MyProtocol3 52 /* { dg-warning "class .MyObject2. does not fully implement the .MyProtocol. protocol" "" { target *-*-* } 50 } */ 54 /* { dg-warning "class .MyObject2. does not fully implement the .MyProtocol2. protocol" "" { target *-*-* } 50 } */ 56 /* { dg-warning "class .MyObject2. does not fully implement the .MyProtocol3. protocol" "" { target *-*-* } 50 } */
|