repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disable gnat.dg/socket1.adb on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wduplicated-branches-14.c
blob
81be1ac39020c600046064b9bc745a4e8445e7e3
1
/* PR c/85094 */
2
/* { dg-do compile } */
3
/* { dg-options "-O1 -Wduplicated-branches -g" } */
4
5
extern
int
g
;
6
7
void
8
foo
(
int
r
)
9
{
10
if
(
r
<
64
)
11
g
-=
48
;
12
else if
(
r
<
80
)
/* { dg-warning "this condition has identical branches" } */
13
g
-=
64
-
45
;
14
else
15
g
-=
80
-
61
;
16
}