view gcc/testsuite/gcc.c-torture/compile/pr34458.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
/* { dg-require-stack-size "1025*4" } */

typedef struct
{
  int data[1024];
}
Lint;
Lint lint_operate (Lint a, long long ammount)
{
  int index;
  Lint ret;
  for (index = 0; index < 24; index++)
    ret.data[index] =
      a.data[index + ammount / 32 + 1] << a.data[index + ammount / 32];
  return ret;
}