☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
Wdangling-else-3.c
☽
☼
gcc/testsuite/c-c++-common/Wdangling-else-3.c
code
plain
raw
1
/* { dg-do compile } */
2
/* { dg-options "-Wparentheses -Wno-dangling-else" } */
3
4
void bar (int);
5
void
6
foo (int a, int b)
7
{
8
if (a) /* { dg-bogus "suggest explicit braces to avoid ambiguous" } */
9
if (b)
10
bar (1);
11
else
12
bar (2);
13
}