2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vla-3.c
blob51dae42f7ecb598296b34e570c381ae5a313a64f
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99" } */
3 /* { dg-require-effective-target alloca } */
5 /* This used to crash as we did not preserve the correct type
6 for __SIZE_TYPE__. See PR22439. */
8 char foo(__SIZE_TYPE__ n)
10 char c[1][n];
11 return c[0][0];