Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
0e0caa2b88a19fb208c413ccf03d67147d313357
/
.
/
test
/
Rewriter
/
rewrite-try-catch.m
blob: 14966dccb3642541a94d242c551193e951e486cf [
file
] [
log
] [
blame
]
// RUN: clang -rewrite-objc %s -o=-
@interface
Foo
@end
@interface
GARF
@end
void
foo
()
{
@try
{
TRY
();
}
@catch
(...)
{
SPLATCH
();
@throw
;
}
}
int
main
()
{
@try
{
MYTRY
();
}
@catch
(
Foo
*
localException
)
{
MYCATCH
();
@throw
;
}
}