1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/* 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; }