libstdc++: Add missing constexpr to __atomic_impl::__clear_padding
[official-gcc.git] / gcc / testsuite / objc / execute / formal_protocol-7.m
blob9e9e730ff70bf539b86ae08e95f33cc07d4ab89d
1 /* Contributed by Nicola Pero - Fri Mar  9 21:35:47 CET 2001 */
3 #include <stdlib.h>
4 #include <objc/Protocol.h>
5 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
7 /* Test defining two protocols, one incorporating the other one. */
9 @protocol Configuring
10 - (void) configure;
11 @end
13 @protocol Processing <Configuring>
14 - (void) process;
15 @end
17 /* A class adopting the protocol */
18 @interface Test : TestsuiteObject <Processing>
20   BOOL didConfigure;
21   BOOL didProcess;
23 @end
25 @implementation Test
26 - (void) configure
28   didConfigure = YES;
30 - (void) process
32   didProcess = YES;
34 @end
36 int main (void)
38   id <Processing> object = [Test new];
40   [object configure];
41   [object process];
43   return 0;