blob: cb65fc4832128eeaba8950088f28ac2d9608eb43 [file] [log] [blame]
// RUN: clang -rewrite-test %s | clang
id SYNCH_EXPR();
void SYNCH_BODY();
void SYNCH_BEFORE();
void SYNC_AFTER();
void foo(id sem)
{
SYNCH_BEFORE();
@synchronized (SYNCH_EXPR()) {
SYNCH_BODY();
return;
}
SYNC_AFTER();
}