blob: 57085db64460586f328204d71a32062566334938 [file] [log] [blame]
Chris Lattnerc30ebfb2007-08-27 04:29:41 +00001/* RUN: clang %s -std=c89 -pedantic -parse-ast-check
2 */
3void foo() {
4 {
5 int i;
6 i = i + 1;
7 int j; /* expected-warning {{mixing declarations and code}} */
8 }
9 {
10 __extension__ int i;
11 i = i + 1;
12 int j; /* expected-warning {{mixing declarations and code}} */
13 }
14 {
15 int i;
16 i = i + 1;
17 __extension__ int j; /* expected-warning {{mixing declarations and code}} */
18 }
19}