Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / testsuite / objc / execute / protocol-isEqual-2.m
blobcc135766367f2144ebaa9988e90d7f85aa9bd5ec
1 /* Contributed by Nicola Pero - Fri Jun  4 03:16:17 BST 2004 */
2 /* Test that protocols with different names are different.  */
3 #include "../../objc-obj-c++-shared/runtime.h"
4 #include <objc/Protocol.h>
6 @protocol Foo1
7 - (void)foo1;
8 @end
10 @protocol Foo2
11 - (void)foo2;
12 @end
14 int main (void)
16   if (protocol_isEqual (@protocol(Foo1), @protocol(Foo2)))
17     {
18       abort ();
19     }
20   
21   return 0;