Debian Codegraph @

gcc/testsuite/g++.dg/gomp/allocate-2.C

raw
1 // PR c++/97670
2
3 struct S { int s; };
4
5 void
6 foo ()
7 {
8 S s[1] = { S () };
9 #pragma omp parallel reduction (+: s) allocate(s) // { dg-error "user defined reduction not found for 's'" }
10 s[0].s++;
11 }