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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
no-objc-exceptions.m
blob
d323ca3bcf8e9ae3cd2ee8b7c939da80429c157d
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
void f(void) {
4
@throw @"Hello"; // expected-error {{cannot use '@throw' with Objective-C exceptions disabled}}
5
}
6
7
void g(void) {
8
@try { // expected-error {{cannot use '@try' with Objective-C exceptions disabled}}
9
f();
10
} @finally {
11
12
}
13
}