Debian Codegraph @

gcc/testsuite/g++.dg/gomp/pr102431.C

raw
1 // PR middle-end/102431
2
3 struct S { S (); ~S (); S (const S &); void add (const S &); int s; } s;
4 void bar (int, S &);
5 #pragma omp declare reduction (+:S:omp_out.add (omp_in))
6
7 void
8 foo ()
9 {
10 #pragma omp loop bind(teams) reduction(+:s)
11 for (int i = 0; i < 8; i++)
12 bar (i, s);
13 }