代码搜索结果

找到约 33,168 项符合 Protocol 的代码

proto-hier-1.m

/* Test for handling of protocol hierarchies. */ /* Author: Ziemowit Laski . */ /* { dg-do compile } */ /* One-line substitute for objc/objc.h */ typedef struct objc_object { stru

missing-proto-3.m

/* Ensure that the compiler gracefully handles missing protocol declarations. In addition to not crashing :-), the compiler should properly handle valid protocol references, even when they're mi

comp-types-10.m

/* { dg-do compile } */ #include @protocol Foo - (id)meth1; - (id)meth2:(int)arg; @end @interface Derived1: Object @end @interface Derived2: Object + (Derived1 *)new; @end id

formal_protocol-6.m

/* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */ #include #include /* Test defining a protocol, and accessing it using @protocol */ @protocol Evaluatin

formal_protocol-2.m

/* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */ #include #include /* Test defining a protocol, a class adopting it, and using an object of type `id

formal_protocol-1.m

/* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */ #include #include /* Tests defining a protocol and a class adopting it */ @protocol Enabling - (BOOL) is

bycopy-1.m

/* * Contributed by Nicola Pero * Fri Feb 2 11:48:01 GMT 2001 */ #include #include @protocol MyProtocol - (bycopy id) bycopyMethod; @end

formal_protocol-5.m

/* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */ #include #include /* Test defining a protocol, and accessing it using @protocol */ @protocol Evaluatin

formal_protocol-4.m

/* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */ #include #include /* Test defining a protocol, a class adopting it in a category */ @protocol Evaluating

formal_protocol-7.m

/* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */ #include #include #include /* Test defining two protocols, one incorporating the other