Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
768ad16a4ab79fbc52f6f3bdc9362fd4e1d51d53
/
.
/
test
/
Rewriter
/
rewrite-try-catch.m
blob: 9cbc52b6c22ab07b2464f61fb6d6ca4f5a0a4a3f [
file
] [
log
] [
blame
]
// RUN: clang -rewrite-test %s | clang
@interface
Foo
@end
@interface
GARF
@end
void
foo
()
{
@try
{
TRY
();
}
@catch
(...)
{
SPLATCH
();
@throw
;
}
}
int
main
()
{
@try
{
MYTRY
();
}
@catch
(
Foo
*
localException
)
{
MYCATCH
();
@throw
;
}
}