(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Walloca-14.c
       1  /* PR tree-optimization/80109 */
       2  /* { dg-do compile } */
       3  /* { dg-require-effective-target alloca } */
       4  /* { dg-skip-if "small address space" { "pdp11-*-*" } } */
       5  /* { dg-options "-O2 -Walloca-larger-than=126812070" { target ptr32plus }  } */
       6  /* { dg-options "-O2 -Walloca-larger-than=12070" { target { ! ptr32plus } } } */
       7  
       8  void
       9  g (int *p)
      10  {
      11    extern void f (void *);
      12  
      13    void *q = __builtin_alloca (p); /* { dg-warning "passing argument 1" } */
      14    /* { dg-warning "unbounded use of 'alloca'" "unbounded" { target *-*-* } .-1 } */
      15    f (q);
      16  }