1 // RUN: %clang_cc1 -fsyntax-only -verify -Wvla %s
3 void test1(int n
) { // expected-note {{here}}
4 int v
[n
]; // expected-warning {{variable length array}} expected-note {{parameter 'n'}}
7 void test2(int n
, int v
[n
]) { // expected-warning {{variable length array}} expected-note {{parameter 'n'}} expected-note {{here}}
10 void test3(int n
, int v
[n
]); // expected-warning {{variable length array}} expected-note {{parameter 'n'}} expected-note {{here}}
13 void test4(int n
) { // expected-note {{here}}
14 int v
[n
]; // expected-warning {{variable length array}} expected-note {{parameter 'n'}}
18 void test5(int n
, int v
[n
]) { // expected-warning {{variable length array}} expected-note {{parameter 'n'}} expected-note {{here}}
22 void test6(int n
, int v
[n
]); // expected-warning {{variable length array}} expected-note {{parameter 'n'}} expected-note {{here}}
25 void test7(int n
, T v
[n
]) { // expected-warning {{variable length array}} expected-note {{parameter 'n'}} expected-note {{here}}