]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr98721-1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr98721-1.c
1 /* PR tree-optimization/98721 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 int
6 foo (int n)
7 {
8 if (n <= 0)
9 {
10 char vla[n]; /* { dg-message "source object 'vla' of size 0" } */
11 return __builtin_strlen (vla); /* { dg-warning "'__builtin_strlen' reading 1 or more bytes from a region of size 0" } */
12 }
13 return -1;
14 }