view gcc/testsuite/gcc.dg/autopar/pr46885.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

/* PR debug/46885 */
/* { dg-do compile } */
/* { dg-options "-O -ftree-parallelize-loops=4 -fcompare-debug -fno-tree-dominator-opts -funswitch-loops" } */

static inline void
bar (int i)
{
  (void) i;
}

int
foo (int *begin, int *end)
{
  int s = 0;
  int *i;
  for (i = begin; i != end; ++i)
    {
      bar (0);
      if (begin)
	return s;
    }
  return 0;
}