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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
rdar6248119.m
blob
afde67b6028df004985c9c98bd1922275f4e8376
1
// RUN: %clang_cc1 -fsyntax-only %s -verify -fobjc-exceptions
2
// expected-no-diagnostics
3
// Test case for:
4
// <rdar://problem/6248119> @finally doesn't introduce a new scope
5
6
void f0(void) {
7
int i;
8
@try {
9
} @finally {
10
int i = 0;
11
}
12
}
13
14
void f1(void) {
15
int i;
16
@try {
17
int i =0;
18
} @finally {
19
}
20
}
21
22
void f2(void) {
23
int i;
24
@try {
25
} @catch(id e) {
26
int i = 0;
27
}
28
}