(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr98721-1.c
       1  /* PR tree-optimization/98721 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2" } */
       4  /* { dg-require-effective-target alloca } */
       5  
       6  int
       7  foo (int n)
       8  {
       9    if (n <= 0)
      10      {
      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" } */
      13      }
      14    return -1;
      15  }