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
PR target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wduplicated-branches-11.c
blob
70d86cf7f05f12a73d0aef3406d174811b30df63
1
/* PR c/64279 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wduplicated-branches" } */
4
5
int
6
f
(
int
p
)
7
{
8
if
(
p
==
0
)
9
{
10
p
+=
1
, ++
p
;
11
}
12
else
13
{
14
p
-=
1
, ++
p
;
15
}
16
17
if
(
p
==
1
)
18
{
19
}
20
else
21
p
++;
22
23
if
(
p
==
2
)
24
p
++;
25
else
26
{
27
}
28
29
if
(
p
==
3
)
30
{
31
}
32
else
33
{
34
}
35
36
if
(
p
==
4
)
37
{
38
++
p
;
39
return
p
;
40
}
41
else
42
{
43
p
++;
44
return
p
;
45
}
46
47
if
(
p
==
5
)
48
++
p
;
49
else
50
p
++;
51
52
if
(
p
==
6
)
53
{
54
++
p
;
55
++
p
;
56
return
p
;
57
}
58
else
59
{
60
++
p
;
61
return
p
;
62
}
63
64
if
(
p
==
7
)
65
{
66
++
p
;
67
return
p
;
68
}
69
else
70
{
71
++
p
;
72
++
p
;
73
return
p
;
74
}
75
}