OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc/] [execute/] [protocol-isEqual-3.m] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* Contributed by Nicola Pero - Fri Jun  4 03:16:17 BST 2004 */
/* Contributed by Nicola Pero - Fri Jun  4 03:16:17 BST 2004 */
/* Test that a protocol is not equal to nil.  */
/* Test that a protocol is not equal to nil.  */
#include <objc/Protocol.h>
#include <objc/Protocol.h>
 
 
@protocol Foo
@protocol Foo
- (void)foo;
- (void)foo;
@end
@end
 
 
int main (void)
int main (void)
{
{
  if ([@protocol(Foo) isEqual: nil])
  if ([@protocol(Foo) isEqual: nil])
    {
    {
      abort ();
      abort ();
    }
    }
 
 
  return 0;
  return 0;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.