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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
scope-4.c
blob
924ae9cbb24ffba78f3484ef4a8423a4c98d00d1
1
/* PR middle-end/102504 */
2
/* { dg-do compile } */
3
4
int
5
foo
()
6
{
7
int
r
=
0
;
8
#pragma omp scope reduction(+:r)
/* { dg-error "reduction variable 'r' is private in outer context" } */
9
r
++;
10
return
r
;
11
}