Debian Codegraph @

gcc/testsuite/gcc.dg/autopar/pr46885.c

raw
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
6 bar (int i)
7 {
8 (void) i;
9 }
10
11 int
12 foo (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 }