2008-04-15 06:03:09 +08:00
|
|
|
// RUN: clang -rewrite-objc %s -o=-
|
2008-01-30 06:59:37 +08:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|