Debian Codegraph @

gcc/testsuite/gcc.dg/pr105415.c

raw
1 /* PR debug/105415 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target pthread } */
4 /* { dg-options "-O2 -ftree-parallelize-loops=2 -fcompare-debug" } */
5
6 int m;
7 static int n;
8
9 void
10 foo (void)
11 {
12 int s = 0;
13
14 while (m < 1)
15 {
16 s += n;
17 ++m;
18 }
19 }
20
21 void
22 bar (int *arr, int i)
23 {
24 while (i < 1)
25 arr[i++] = 1;
26 }