Searched refs:protocol (Results 1 - 25 of 193) sorted by relevance

12345678

/haiku-buildtools/gcc/gcc/testsuite/objc.dg/
H A Dmissing-proto-2.m1 /* Test for graceful handling of missing protocol declarations. */
5 void *protRef = @protocol(Missing); /* { dg-error "cannot find protocol declaration for .Missing." } */
H A Dkeywords-2.m2 'protocol', 'selector', finally', 'synchronized', 'interface',
11 int protocol = defs * 2;
12 int selector = protocol * 2;
H A Dfwd-proto-1.m8 @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 Dprotocol-forward-1.m5 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 Denhanced-proto-1.m2 /* Test use of @optional/@required keywords in @protocol class. */
5 @protocol MyProto1
15 @protocol MyProto2 <MyProto1>
H A Dproto-lossage-5.m5 @protocol _MyProtocol;
14 @protocol _MyProtocol
H A Dproto-lossage-3.m2 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 Dprotocol-forward-2.m5 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 Dclass-extension-2.m8 /* 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 Dprotocol-isEqual-1.m2 /* Test that a protocol is equal to itself. */
6 @protocol Foo
12 Protocol *protocol = @protocol(Foo);
14 if (!protocol_isEqual (protocol, protocol))
H A Dprotocol-isEqual-2.m6 @protocol Foo1
10 @protocol Foo2
16 if (protocol_isEqual (@protocol(Foo1), @protocol(Foo2)))
H A Dformal_protocol-5.m7 /* 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 Dformal_protocol-6.m7 /* 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 Dprotocol-isEqual-3.m2 /* Test that a protocol is not equal to nil. */
6 @protocol Foo
12 if (protocol_isEqual (@protocol(Foo), nil))
H A Dprotocol-isEqual-4.m2 /* 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 Dproto-attribute-4.mm4 /* 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 Dproto-attribute-4.m4 /* 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 Dproto-attribute-3.m4 /* 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 Dkeywords-2.mm2 'protocol', 'selector', finally', 'synchronized', 'interface',
11 int protocol = defs * 2;
12 int selector = protocol * 2;
H A Dprotocol-forward-1.mm5 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 Denhanced-proto-1.mm1 /* Test use of @optional/@required keywords in @protocol class. */
4 @protocol MyProto1
14 @protocol MyProto2 <MyProto1>
H A Dproto-lossage-5.mm5 @protocol _MyProtocol;
14 @protocol _MyProtocol
H A Dproto-lossage-3.mm2 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 Dprotocol-forward-2.mm5 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 Dclass-extension-2.mm8 /* 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 } */

Completed in 110 milliseconds

12345678