1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
4 #include "../../objc-obj-c++-shared/Protocol1.h"
6 /* Test defining a protocol, and accessing it using @protocol */
12 /* A class adopting the protocol */
13 @interface Test <Evaluating>
25 Protocol *protocol = @protocol (Evaluating);
27 #ifdef NEXT_OBJC_USE_NEW_INTERFACE
28 if (strcmp (protocol_getName(protocol), "Evaluating"))
30 if (strcmp ([protocol name], "Evaluating"))