1 // RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -fexceptions -Wno-address-of-temporary -D"SEL=void*" -D"Class=struct objc_class *" -D"__declspec(X)=" %t-rw.cpp
4 typedef struct objc_object {
8 void *sel_registerName(const char *);
11 void SYNCH_BODY(void);
12 void SYNCH_BEFORE(void);
13 void SYNC_AFTER(void);
18 @synchronized (SYNCH_EXPR()) {
23 @synchronized ([sem self]) {
29 void test_sync_with_implicit_finally(void) {
32 return; // The rewriter knows how to generate code for implicit finally
36 @interface NSObject @end
38 @interface I : NSObject @end