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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [objc/] [execute/] [protocol-isEqual-2.m] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Contributed by Nicola Pero - Fri Jun  4 03:16:17 BST 2004 */
2
/* Test that protocols with different names are different.  */
3
#include <objc/Protocol.h>
4
 
5
@protocol Foo1
6
- (void)foo1;
7
@end
8
 
9
@protocol Foo2
10
- (void)foo2;
11
@end
12
 
13
int main (void)
14
{
15
  if ([@protocol(Foo1) isEqual: @protocol(Foo2)])
16
    {
17
      abort ();
18
    }
19
 
20
  return 0;
21
}
22
 

powered by: WebSVN 2.1.0

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