Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wduplicated-branches7.C
blobbbc07937ef93117ac8051067052cdf8775c3694a
1 // PR c++/99565
2 // { dg-do compile }
3 // { dg-options "-Wduplicated-branches" }
5 int a;
7 void
8 foo (bool x)
10   x ? ++a : ++a;        // { dg-warning "this condition has identical branches" }