Debian Codegraph @

gcc/testsuite/objc/execute/exceptions/trivial.m

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