* g++.dg/Walloca1.C: Adjust dg-warning.

From-SVN: r245975
This commit is contained in:
Marek Polacek 2017-03-08 12:58:01 +00:00 committed by Marek Polacek
parent f1a675e486
commit 6659fe59f3
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-03-08 Marek Polacek <polacek@redhat.com>
* g++.dg/Walloca1.C: Adjust dg-warning.
2017-03-08 Andrew Haley <aph@redhat.com>
PR tree-optimization/79943

View File

@ -3,4 +3,4 @@
/* { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2" } */
int a;
char *b = static_cast<char *>(__builtin_alloca (a)); // { dg-warning "argument to .alloca. may be too large" }
char *b = static_cast<char *>(__builtin_alloca (a)); // { dg-warning "argument to .alloca. may be too large|unbounded use of" }