☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
allocate-2.C
☽
☼
gcc/testsuite/g++.dg/gomp/allocate-2.C
code
plain
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
}