You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
311 B
Plaintext
23 lines
311 B
Plaintext
#import "Test.h"
|
|
|
|
#import "stdio.h"
|
|
|
|
|
|
void excerciseExceptionCXX(Test *e) {
|
|
@try {
|
|
printf("Raising Test\n");
|
|
@throw e;
|
|
} @catch (Test *localException) {
|
|
printf("Caught\n");
|
|
}
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
Test *e = [Test new];
|
|
excerciseExceptionCXX(e);
|
|
excerciseExceptionCXX(e);
|
|
[e release];
|
|
}
|
|
|