blob: d218183f3418e6e4f9544ae123f8a41771191b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <stdlib.h>
#include "../../../objc-obj-c++-shared/TestsuiteObject.m"
/* do nothing except prove we can compile and link code calling the
ecceptions mechanism */
int main(void)
{
@try {
int a = 1 ;
@throw [TestsuiteObject new];
}
@catch (TestsuiteObject *obj) {
return 0;
}
abort();
}
|