Add testcase of PR c++/89404, already fixed in trunk.
PR c++/89404 * g++.dg/ext/vla21.C: New.
This commit is contained in:
parent
811a475ea3
commit
c58e6cc32c
@ -1,3 +1,8 @@
|
||||
2020-02-07 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/89404
|
||||
* g++.dg/ext/vla21.C: New.
|
||||
|
||||
2020-02-07 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/93615
|
||||
|
8
gcc/testsuite/g++.dg/ext/vla21.C
Normal file
8
gcc/testsuite/g++.dg/ext/vla21.C
Normal file
@ -0,0 +1,8 @@
|
||||
// PR c++/89404
|
||||
// { dg-additional-options "-Wno-vla" }
|
||||
|
||||
void
|
||||
foo (int n)
|
||||
{
|
||||
struct {} a[1][n] (+a[0]); // { dg-error "initialized" }
|
||||
}
|
Loading…
Reference in New Issue
Block a user