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
/
pr86025.c
blob
c1c507994138161df3e968aed48924c66940b5ee
1
/* PR c++/86025 */
2
/* { dg-do compile } */
3
/* { dg-additional-options "-Wduplicated-branches" } */
4
5
int
i
;
6
7
void
8
foo
(
int
x
)
9
{
10
if
(
x
)
11
{
12
#pragma omp critical (foo)
13
i
++;
14
}
15
else
16
{
17
#pragma omp critical
18
i
++;
19
}
20
}