repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
Sema
/
warn-unreachable.mm
blob
bb573b875c569d00c78f453e1bcf2b60208733a7
1
// RUN: %clang_cc1 -fsyntax-only -fobjc-exceptions -fcxx-exceptions -verify -Wunreachable-code %s
2
3
void f();
4
5
void g3() {
6
try {
7
@try {
8
f();
9
throw 4; // caught by @catch, not by outer c++ catch.
10
f(); // expected-warning {{will never be executed}}
11
} @catch (...) {
12
}
13
f(); // not-unreachable
14
} catch (...) {
15
}
16
}