Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc / execute / protocol-isEqual-1.m
blobdf1382d3395a1b2960c53f99aa62d39e8a6601a1
1 /* Contributed by Nicola Pero - Fri Jun  4 03:16:17 BST 2004 */
2 /* Test that a protocol is equal to itself.  */
3 #include <objc/Protocol.h>
5 @protocol Foo
6 - (void)foo;
7 @end
9 int main (void)
11   Protocol *protocol = @protocol(Foo);
13   if (! [protocol isEqual: protocol])
14     {
15       abort ();
16     }
17   
18   return 0;