Make tree-ssa-strlen.c handle partial unterminated strings
[official-gcc.git] / gcc / testsuite / objc / execute / protocol-isEqual-1.m
blobb928337aa10ae9ca0d36db6920372e89d378cfdd
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>
4 #include "../../objc-obj-c++-shared/runtime.h"
6 @protocol Foo
7 - (void)foo;
8 @end
10 int main (void)
12   Protocol *protocol = @protocol(Foo);
14   if (!protocol_isEqual (protocol, protocol))
15     {
16       abort ();
17     }
18   
19   return 0;