(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Walloca-13.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target alloca } */
       3  /* { dg-options "-Walloca-larger-than=100 -O2" } */
       4  
       5  void f (void*);
       6  
       7  void g (int *p, int *q)
       8  {
       9    __SIZE_TYPE__ n = (__SIZE_TYPE__)(p - q);
      10    if (n < 100)
      11      f (__builtin_alloca (n));
      12  }