repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
objc
/
execute
/
protocol-isEqual-1.m
blob
df1382d3395a1b2960c53f99aa62d39e8a6601a1
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
5
@protocol Foo
6
- (void)foo;
7
@end
8
9
int main (void)
10
{
11
Protocol *protocol = @protocol(Foo);
12
13
if (! [protocol isEqual: protocol])
14
{
15
abort ();
16
}
17
18
return 0;
19
}
20