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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wduplicated-branches-5.c
blob
f2eb8ecfefa9cdfa15adcd5d182373787ca70a2c
1
/* PR c/64279 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wduplicated-branches" } */
4
5
extern
int
g
;
6
extern
void
foo
();
7
#define A g = i
8
#define B g = i
9
#define DOIT() foo()
10
#define DOIT2() foo()
11
12
void
13
f
(
int
i
)
14
{
15
if
(
i
==
0
)
16
A
;
17
else
18
B
;
19
20
if
(
i
==
1
)
21
DOIT
();
22
else
23
DOIT2
();
24
}