1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
f1()3 void f1() {
4   int n;
5 
6   for (n = 0; n < 10; n++);
7 
8   for (n = 0 n < 10; n++); // expected-error {{expected ';' in 'for'}}
9   for (n = 0; n < 10 n++); // expected-error {{expected ';' in 'for'}}
10 
11   for (int n = 0 n < 10; n++); // expected-error {{expected ';' in 'for'}}
12   for (int n = 0; n < 10 n++); // expected-error {{expected ';' in 'for'}}
13 
14   for (n = 0 bool b = n < 10; n++); // expected-error {{expected ';' in 'for'}}
15   for (n = 0; bool b = n < 10 n++); // expected-error {{expected ';' in 'for'}}
16 
17   for (n = 0 n < 10 n++); // expected-error 2{{expected ';' in 'for'}}
18 
19   for (;); // expected-error {{expected ';' in 'for'}}
20 }
21