blob: 9560c92bfd4012a40acbd26accef29869793e49b [file] [log] [blame]
/* 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;
}