URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* 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 a protocol is not equal to nil. */
|
/* Test that a protocol is not equal to nil. */
|
#include <objc/Protocol.h>
|
#include <objc/Protocol.h>
|
|
|
@protocol Foo
|
@protocol Foo
|
- (void)foo;
|
- (void)foo;
|
@end
|
@end
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
if ([@protocol(Foo) isEqual: nil])
|
if ([@protocol(Foo) isEqual: nil])
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.