1 /* { dg-do compile } */ 2 3 struct S; 4 #pragma omp declare reduction (+:struct S:omp_out.s += omp_in.s) /* { dg-error "invalid use of undefined type" } */ 5 struct S { int s; }; 6 #pragma omp declare reduction (*:struct S:omp_out.s *= omp_in.s) 7