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
StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git]
/
test
/
CodeGenObjC
/
nested-rethrow.m
blob
627b913ab06724afe17c86b1e24b07f333ecd18e
1
// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
2
3
4
extern int printf(const char*, ...);
5
6
int main()
7
{
8
@try {
9
@throw @"foo";
10
} @catch (id e) {
11
@try {
12
// CHECK: call void @objc_exception_throw
13
@throw;
14
} @catch (id e) {
15
if (e) {
16
printf("caught \n");
17
} else {
18
printf("caught (WRONG)\n");
19
}
20
} @catch (...) {
21
printf("caught nothing (WRONG)\n");
22
}
23
}
24
}
25