1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
4 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
6 /* Test defining a protocol, a class adopting it, and using an object
7 of type `id <protocol>'. */
11 - (void) setEnabled: (BOOL)flag;
14 @interface Feature : TestsuiteObject <Enabling>
21 @implementation Feature
26 - (void) setEnabled: (BOOL)flag
36 object = [Feature new];
38 [object setEnabled: YES];
39 if (![object isEnabled])