repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
Rewriter
/
rewrite-try-catch.m
blob
d0c6d2acf67d1bc5692db8e7f3b5bb7f6fa77cd1
1
// RUN: %clang_cc1 -rewrite-objc %s -o -
2
3
@interface Foo @end
4
@interface GARF @end
5
6
void foo() {
7
@try { TRY(); }
8
@catch (...) { SPLATCH(); @throw; }
9
}
10
11
int main()
12
{
13
14
@try {
15
MYTRY();
16
}
17
18
@catch (Foo* localException) {
19
MYCATCH();
20
@throw;
21
}
22
23
// no catch clause
24
@try { }
25
@finally { }
26
}
27