]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr98721-1.c
1 /* PR tree-optimization/98721 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
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" } */