summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wvla-1.C
blob: ca3669aec99efd745617c9f397b0acd976bbc000 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-Wvla" } */

void func (int i)
{
  int array[i]; /* { dg-warning "variable length array 'array' is used" } */
}