1// RUN: %clang_cc1 -std=c99 -fsyntax-only -verify -Wvla %s
2// RUN: %clang_cc1 -std=c89 -fsyntax-only -verify -Wvla %s
3
4void test1(int n) {
5  int v[n]; // expected-warning {{variable length array used}}
6}
7
8void test2(int n, int v[n]) { // expected-warning {{variable length array used}}
9}
10
11void test3(int n, int v[n]); // expected-warning {{variable length array used}}
12
13