1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
4 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
6 /* Test defining two protocol, a class adopting both of them,
7 and using an object of type `id <Protocol1, Protocol2>' */
11 - (void) setEnabled: (BOOL)flag;
18 @interface Feature : TestsuiteObject <Enabling, Evaluating>
25 @implementation Feature
30 - (void) setEnabled: (BOOL)flag
42 id <Enabling, Evaluating> object;
44 object = [Feature new];
46 [object setEnabled: YES];
47 if (![object isEnabled])
52 if ([object importance] != 1000)