Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
allocate-2.C
blob: b8cf480cf10bc46a823add7c1cb9d0cb60f55cc8 [
file
] [
log
] [
blame
]
// PR c++/97670
struct
S
{
int
s
;
};
void
foo
()
{
S s
[
1
]
=
{
S
()
};
#pragma
omp parallel reduction
(+:
s
)
allocate
(
s
)
// { dg-error "user defined reduction not found for 's'" }
s
[
0
].
s
++;
}