aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr51354.c
blob: 354f40eb8fc3354b1a5cf7faf639854ca9650702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/51354 */
/* { dg-require-effective-target alloca } */

extern void abort (void);

typedef int __attribute__ ((aligned (32))) ai;

void foo (int *x, ai * y);

int
bar (int x)
{
  if (x == 12346)
    return 24;
  ai i;
  foo (__builtin_alloca (x), &i);
  return 128;
}