Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / objc / execute / protocol-isEqual-1.m
blob29b5c3ded78685151916bcb6c5aaf3354ebbb3be
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-obj-c++-shared/Protocol1.h"
5 @protocol Foo
6 - (void)foo;
7 @end
9 int main (void)
11   Protocol *protocol = @protocol(Foo);
13 #ifdef NEXT_OBJC_USE_NEW_INTERFACE
14   if ( !protocol_isEqual (protocol, protocol))
15 #else
16   if (! [protocol isEqual: protocol])
17 #endif
18     {
19       abort ();
20     }
21   
22   return 0;