[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / warn-vla.c
blob28b8a72877a0b1b1a8a16d204a1d95234adc9613
1 // RUN: %clang_cc1 -std=c99 -fsyntax-only -verify -Wvla %s
2 // RUN: %clang_cc1 -std=c89 -fsyntax-only -verify -Wvla %s
4 void test1(int n) {
5 int v[n]; // expected-warning {{variable length array}}
8 void test2(int n, int v[n]) { // expected-warning {{variable length array}}
11 void test3(int n, int v[n]); // expected-warning {{variable length array}}