Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wduplicated-branches7.C
blob: bbc07937ef93117ac8051067052cdf8775c3694a [
file
] [
log
] [
blame
]
// PR c++/99565
// { dg-do compile }
// { dg-options "-Wduplicated-branches" }
int
a
;
void
foo
(
bool
x
)
{
x
?
++
a
:
++
a
;
// { dg-warning "this condition has identical branches" }
}