1 /* { dg-do compile } */
2 /* { dg-additional-options "-ftree-loop-distribution -ftree-parallelize-loops=2" { target pthread } } */
3
4 struct S {
5 int f;
6 };
7
8 int n;
9
10 int
11 foo (struct S *s)
12 {
13 int arr[3];
14 int v = 0;
15
16 for (n = 0; n < 2; ++n)
17 {
18 int i;
19
20 for (i = 0; i < 2; ++i)
21 {
22 int j;
23
24 for (j = 0; j < s->f; ++j)
25 ++v;
26 }
27
28 if (v)
29 arr[0] = 0;
30
31 arr[n + 1] = 0;
32 }
33
34 return arr[0];
35 }