blob: 91bd0c83b31b31e77f31c467ebe8ee33d76fe21c [file] [log] [blame]
Fariborz Jahanianf459beb2010-08-29 17:20:53 +00001// RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s
2// rdar://8295106
3
4int main() {
5id array;
6
7 for (int (^b)(void) in array) {
8 if (b() == 10000) {
9 return 1;
10 }
11 }
12
13 int (^b)(void) in array; // expected-error {{expected ';' at end of declaration}}
14}