7 #pragma omp declare reduction (+:struct S:omp_out.s += omp_in.s)
8 #pragma omp declare reduction (foo:struct S:omp_out.s += omp_in.s)
9 #pragma omp declare reduction (foo:int:omp_out += omp_in)
17 #pragma omp parallel reduction(+:s, q) reduction(foo:t, u)
19 if (s
.s
!= 0 || t
.s
!= 0 || u
!= 0 || q
!= 0) abort ();
25 if (s
.s
!= 6 * q
|| t
.s
!= 8 * q
|| u
!= 9 * q
) abort ();