repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
objc
/
execute
/
protocol-isEqual-3.m
blob
70d450fd8479729aefbce2d505e690406fb25174
1
/* Contributed by Nicola Pero - Fri Jun 4 03:16:17 BST 2004 */
2
/* Test that a protocol is not equal to nil. */
3
#include "../../objc-obj-c++-shared/runtime.h"
4
#include <objc/Protocol.h>
5
6
@protocol Foo
7
- (void)foo;
8
@end
9
10
int main (void)
11
{
12
if (protocol_isEqual (@protocol(Foo), nil))
13
{
14
abort ();
15
}
16
17
return 0;
18
}
19