Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
0e0caa2b88a19fb208c413ccf03d67147d313357
/
.
/
test
/
Rewriter
/
objc-synchronized-1.m
blob: c2aa3486549ef426672c1ead506f9374b3008ef0 [
file
] [
log
] [
blame
]
// RUN: clang -rewrite-objc %s -o=-
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
();
}