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