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-4.m] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Contributed by David Ayers - Fri Jun  4 03:16:17 BST 2004 */
2
/* Test that a protocol is not equal to something which is not a protocol.  */
3
#include <objc/Protocol.h>
4
 
5
@protocol Foo
6
- (void)foo;
7
@end
8
 
9
int main (void)
10
{
11
  /* A Protocol object should not be equal to a Class object.  */
12
  if ([@protocol(Foo) isEqual: [Protocol class]])
13
    {
14
      abort ();
15
    }
16
 
17
  return 0;
18
}
19
 

powered by: WebSVN 2.1.0

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