Debian Codegraph @

gcc/testsuite/objc.dg/try-catch-6.m

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fobjc-exceptions" } */
3
4 #include "../objc-obj-c++-shared/TestsuiteObject.h"
5
6 int main (int argc, const char * argv[]) {
7 TestsuiteObject * pool = [TestsuiteObject new];
8 int a;
9
10 if ( 1 ) {
11
12 @try {
13 a = 1;
14 }
15 @catch (TestsuiteObject *e) {
16 a = 2;
17 }
18 @finally {
19 a = 3;
20 }
21 }
22
23 [pool free];
24 return 0;
25 }