1*1d3b58e3SRichard Trieu // RUN: %clang_cc1 -fsyntax-only -verify %s
2*1d3b58e3SRichard Trieu // RUN: cp %s %t.cpp
3*1d3b58e3SRichard Trieu // RUN: not %clang_cc1 -fsyntax-only %t.cpp -fixit
4*1d3b58e3SRichard Trieu // RUN: %clang_cc1 -fsyntax-only %t.cpp
5*1d3b58e3SRichard Trieu
test1(int a;)6*1d3b58e3SRichard Trieu void test1(int a;) { // expected-error{{unexpected ';' before ')'}}
7*1d3b58e3SRichard Trieu while (a > 5;) {} // expected-error{{unexpected ';' before ')'}}
8*1d3b58e3SRichard Trieu for (int c = 0; c < 21; ++c;) {} // expected-error{{unexpected ';' before ')'}}
9*1d3b58e3SRichard Trieu int d = int(3 + 4;); // expected-error{{unexpected ';' before ')'}}
10*1d3b58e3SRichard Trieu int e[5;]; // expected-error{{unexpected ';' before ']'}}
11*1d3b58e3SRichard Trieu e[a+1;] = 4; // expected-error{{unexpected ';' before ']'}}
12*1d3b58e3SRichard Trieu int f[] = {1,2,3;}; // expected-error{{unexpected ';' before '}'}}
13*1d3b58e3SRichard Trieu }
14