Add testcase of PR c++/89404, already fixed in trunk.

PR c++/89404
	* g++.dg/ext/vla21.C: New.
This commit is contained in:
Paolo Carlini 2020-02-07 11:05:30 +01:00
parent 811a475ea3
commit c58e6cc32c
2 changed files with 13 additions and 0 deletions

View File

@ -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

View 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" }
}