repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wvla-2.C
blob
eacd21237540a583323ed1a4e09a29b939b1ec76
1
/* { dg-do compile { target { ! c++14 } } } */
2
/* { dg-options "-pedantic-errors -Wvla" } */
3
4
void func (int i)
5
{
6
int array[i]; /* { dg-error "ISO C.* forbids variable.* array 'array'" } */
7
}