Merged r157653 through r157895 into branch.
[official-gcc.git] / gcc / testsuite / objc / execute / protocol-isEqual-3.m
blob23863829440a2765c0c63eac1ca3ef74e8fa70a4
1 /* Contributed by Nicola Pero - Fri Jun  4 03:16:17 BST 2004 */
2 /* Test that a protocol is not equal to nil.  */
4 #include "../../objc-obj-c++-shared/Protocol1.h"
6 @protocol Foo
7 - (void)foo;
8 @end
10 int main (void)
12 #ifdef NEXT_OBJC_USE_NEW_INTERFACE
13   if (protocol_isEqual (@protocol(Foo), nil))
14 #else
15   if ([@protocol(Foo) isEqual: nil])
16 #endif
17     {
18       abort ();
19     }
20   
21   return 0;