Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wparentheses-30.C
blob: ea7c74135abd992d07669c44be85c0d9190d0d85 [
file
] [
log
] [
blame
]
/* PR c/71926 */
/* { dg-options "-Wparentheses" } */
int
f
(
void
)
{
int
a
=
1
,
b
=
2
,
c
=
3
,
d
=
4
;
if
(
a
=
2
||
(
b
!=
3
&&
c
!=
4
&&
d
!=
5
))
/* { dg-warning "9:suggest parentheses" } */
return
1
;
return
0
;
}