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
/
Wdangling-else-2.c
blob
87ea1ab568792fd4b0743d0842440a31ccc8f46e
1
/* { dg-do compile } */
2
/* { dg-options "-Wparentheses" } */
3
4
void
bar
(
int
);
5
void
6
foo
(
int
a
,
int
b
)
7
{
8
if
(
a
)
/* { dg-warning "suggest explicit braces to avoid ambiguous" } */
9
if
(
b
)
10
bar
(
1
);
11
else
12
bar
(
2
);
13
}