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++;
}
}