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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc/] [execute/] [protocol-isEqual-2.m] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* 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 protocols with different names are different.  */
/* Test that protocols with different names are different.  */
#include <objc/Protocol.h>
#include <objc/Protocol.h>
 
 
@protocol Foo1
@protocol Foo1
- (void)foo1;
- (void)foo1;
@end
@end
 
 
@protocol Foo2
@protocol Foo2
- (void)foo2;
- (void)foo2;
@end
@end
 
 
int main (void)
int main (void)
{
{
  if ([@protocol(Foo1) isEqual: @protocol(Foo2)])
  if ([@protocol(Foo1) isEqual: @protocol(Foo2)])
    {
    {
      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.