Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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" }
}