repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wduplicated-branches7.C
blob
bbc07937ef93117ac8051067052cdf8775c3694a
1
// PR c++/99565
2
// { dg-do compile }
3
// { dg-options "-Wduplicated-branches" }
4
5
int a;
6
7
void
8
foo (bool x)
9
{
10
x ? ++a : ++a; // { dg-warning "this condition has identical branches" }
11
}