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/Object.h>
11 @interface Frob: Object
14 @implementation Frob: Object
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);