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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjCXX
/
foreach-block.mm
blob
1feb210e1bcb7f6f2a59fa59dd765764485d8a98
1
// RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s
2
3
int main() {
4
id array;
5
6
for (int (^b)(void) in array) {
7
if (b() == 10000) {
8
return 1;
9
}
10
}
11
12
int (^b)(void) in array; // expected-error {{expected ';' at end of declaration}}
13
}