Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr98721-1.c
blob1c7574fb8838a1e2f3166d6cdc9c56b67bcea965
1 /* PR tree-optimization/98721 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-require-effective-target alloca } */
6 int
7 foo (int n)
9 if (n <= 0)
11 char vla[n]; /* { dg-message "source object 'vla' of size 0" } */
12 return __builtin_strlen (vla); /* { dg-warning "'__builtin_strlen' reading 1 or more bytes from a region of size 0" } */
14 return -1;