1 // RUN: %clang_cc1 -rewrite-objc -verify %s -o -
5 printf("executing try"); // expected-warning{{implicitly declaring C library function 'printf' with type 'int (const char *, ...)'}} \
6 // expected-note{{please include the header <stdio.h> or explicitly provide a declaration for 'printf'}}
7 return(0); // expected-warning{{rewriter doesn't support user-specified control flow semantics for @try/@finally (code may not execute properly)}}
9 printf("executing finally");
13 printf("executing try");
16 printf("executing finally");
18 printf("executing after finally block");
21 printf("executing try");
23 printf("executing finally");
28 void test_sync_with_implicit_finally() {
31 return; // The rewriter knows how to generate code for implicit finally
35 void test2_try_with_implicit_finally() {
37 return; // The rewriter knows how to generate code for implicit finally