1 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -fobjc-exceptions -verify %s -o -
3 extern int printf(const char *, ...);
7 printf("executing try");
8 return(0); // expected-warning{{rewriter doesn't support user-specified control flow semantics for @try/@finally (code may not execute properly)}}
10 printf("executing finally");
14 printf("executing try");
17 printf("executing finally");
19 printf("executing after finally block");
22 printf("executing try");
24 printf("executing finally");
29 void test_sync_with_implicit_finally(void) {
32 return; // The rewriter knows how to generate code for implicit finally
36 void test2_try_with_implicit_finally(void) {
38 return; // The rewriter knows how to generate code for implicit finally