2 /* { dg-do compile } */
3 /* { dg-options "-Wlogical-not-parentheses" } */
10 f (int a
, bool b
, bool c
)
19 r
+= !a
== ((b
& c
) | c
);
20 r
+= !a
== ((b
& c
) | (b
^ c
));
21 r
+= !a
== (int) (b
^ c
);
25 r
+= !a
== ~(b
| (a
== 1));
28 r
+= !a
== ((b
& c
) | (b
^ a
)); /* { dg-warning "logical not is only applied to the left hand side of comparison" } */