aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr82564.c
blob: 039f55a3985874caa85ac43d968dc667745391db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/82564 */
/* { dg-require-effective-target alloca } */

int
main ()
{
  int t = 8, i;
  typedef struct { char v[t]; } B; 
  B a, b;
  B __attribute__ ((noinline)) f () { return b; }
  for (i = 0; i < 8; i++)
    b.v[i] = i;
  a = f ();
  return 0;
}