URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 307 |
Rev 338 |
#include <stdlib.h>
|
#include <stdlib.h>
|
#import "../../../objc-obj-c++-shared/Object1.h"
|
#import "../../../objc-obj-c++-shared/Object1.h"
|
|
|
/* do nothing except prove we can compile and link code calling the
|
/* do nothing except prove we can compile and link code calling the
|
ecceptions mechanism */
|
ecceptions mechanism */
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
@try {
|
@try {
|
int a = 1 ;
|
int a = 1 ;
|
@throw [Object new];
|
@throw [Object new];
|
}
|
}
|
@catch (Object *obj) {
|
@catch (Object *obj) {
|
return 0;
|
return 0;
|
}
|
}
|
abort();
|
abort();
|
}
|
}
|
|
|
#import "../../../objc-obj-c++-shared/Object1-implementation.h"
|
#import "../../../objc-obj-c++-shared/Object1-implementation.h"
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.