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