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