aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/Walloca1.C
blob: 2985ac91c62397b0bcdad9186efe4389257db4f7 (plain)
1
2
3
4
5
6
7
8
9
/* PR middle-end/79809 - ICE in alloca_call_type, at gimple-ssa-warn-alloca.c */
/* { dg-do compile } */
/* { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2" } */
/* { dg-require-effective-target alloca } */

int a;
char *b = static_cast<char *>(__builtin_alloca (a));

// { dg-prune-output "argument to .alloca." }