aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-15.c
blob: da6921ed6a36f397bef6734d8ab139abd8d9e2fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR79725 */
/* { dg-do compile { target size32plus } } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

_Complex double f(_Complex double x[])
{
  _Complex float p = 1.0;
  for (int i = 0; i < 1000000; i++)
    p = x[i];
  return p;
}

/* Verify we end up with a single BB and no loop.  */
/* { dg-final { scan-tree-dump-times "goto" 0 "optimized" } } */