URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 309 |
Rev 384 |
/* Crash due to descriptionFor(Instance|Class)Method applied to
|
/* Crash due to descriptionFor(Instance|Class)Method applied to
|
a protocol with no instance/class methods respectively.
|
a protocol with no instance/class methods respectively.
|
Problem report and original fix by richard@brainstorm.co.uk. */
|
Problem report and original fix by richard@brainstorm.co.uk. */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
#include "../objc-obj-c++-shared/Protocol1.h"
|
#include "../objc-obj-c++-shared/Protocol1.h"
|
#include "../objc-obj-c++-shared/Object1.h"
|
#include "../objc-obj-c++-shared/Object1.h"
|
#include <objc/objc.h>
|
#include <objc/objc.h>
|
|
|
@protocol NoInstanceMethods
|
@protocol NoInstanceMethods
|
+ testMethod;
|
+ testMethod;
|
@end
|
@end
|
|
|
@protocol NoClassMethods
|
@protocol NoClassMethods
|
- testMethod;
|
- testMethod;
|
@end
|
@end
|
|
|
int
|
int
|
main()
|
main()
|
{
|
{
|
[@protocol(NoInstanceMethods) descriptionForInstanceMethod: @selector(name)];
|
[@protocol(NoInstanceMethods) descriptionForInstanceMethod: @selector(name)];
|
[@protocol(NoInstanceMethods) descriptionForClassMethod: @selector(name)];
|
[@protocol(NoInstanceMethods) descriptionForClassMethod: @selector(name)];
|
[@protocol(NoClassMethods) descriptionForInstanceMethod: @selector(name)];
|
[@protocol(NoClassMethods) descriptionForInstanceMethod: @selector(name)];
|
[@protocol(NoClassMethods) descriptionForClassMethod: @selector(name)];
|
[@protocol(NoClassMethods) descriptionForClassMethod: @selector(name)];
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.