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