Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
}