repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr59628.C
blob
518200b9c292f0e07f6f1c839d4152091889136a
1
// PR c++/59628
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
5
struct A { int i; };
6
7
void foo()
8
{
9
A a;
10
#pragma omp declare reduction (+: A: omp_out.i +: omp_in.i) // { dg-error "expected" }
11
#pragma omp parallel reduction (+: a)
12
;
13
}