Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr86025.c
blob: c1c507994138161df3e968aed48924c66940b5ee [
file
] [
log
] [
blame
]
/* PR c++/86025 */
/* { dg-do compile } */
/* { dg-additional-options "-Wduplicated-branches" } */
int
i
;
void
foo
(
int
x
)
{
if
(
x
)
{
#pragma
omp critical
(
foo
)
i
++;
}
else
{
#pragma
omp critical
i
++;
}
}