Commit 6659fe59 by Marek Polacek Committed by Marek Polacek

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

From-SVN: r245975
parent f1a675e4
2017-03-08 Marek Polacek <polacek@redhat.com>
* g++.dg/Walloca1.C: Adjust dg-warning.
2017-03-08 Andrew Haley <aph@redhat.com> 2017-03-08 Andrew Haley <aph@redhat.com>
PR tree-optimization/79943 PR tree-optimization/79943
......
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
/* { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2" } */ /* { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2" } */
int a; 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment