1 /* PR debug/46885 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O -ftree-parallelize-loops=4 -fcompare-debug -fno-tree-dominator-opts -funswitch-loops" } */ 4 5 static inline void bar(int i)6bar (int i) 7 { 8 (void) i; 9 } 10 11 int foo(int * begin,int * end)12foo (int *begin, int *end) 13 { 14 int s = 0; 15 int *i; 16 for (i = begin; i != end; ++i) 17 { 18 bar (0); 19 if (begin) 20 return s; 21 } 22 return 0; 23 } 24