summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Walloca-14.c
blob: 723dbe5081ab67558828054099d6af01b2b8a893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/80109 */
/* { dg-do compile } */
/* { dg-require-effective-target alloca } */
/* { dg-options "-O2 -Walloca-larger-than=126812070" } */

void
g (int *p)
{
  extern void f (void *);

  void *q = __builtin_alloca (p); /* { dg-warning "passing argument 1" } */
  f (q);
}