1 /* Test if the compiler accepts @throw / @try..@catch..@finally syntax. */
2 /* Developed by Ziemowit Laski <zlaski@apple.com>. */
4 /* { dg-options "-fobjc-exceptions" } */
5 /* { dg-do compile } */
7 #include "../objc-obj-c++-shared/TestsuiteObject.h"
11 @interface Frob: TestsuiteObject
14 @implementation Frob: TestsuiteObject
17 static int exc_control = 0;
21 printf ("Throwing (%d)... ", exc_control);
34 printf("Rethrowing (%d)... ", exc_control);
40 printf("In @finally block (%d)... ", exc_control);