summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c
blob: fbe6f4fd20d80e1d398f039a8e692323033493ab (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

int *p;

void
test (int a)
{
  if (a > 0)
    p = __builtin_alloca (4);
}