2 /* { dg-do compile } */
3 /* { dg-options "-Wlogical-not-parentheses" } */
5 /* Test that we don't warn if rhs is a comparison or a logical op. */
21 r
+= !a
== (a
^ b
); /* { dg-warning "logical not is only applied to the left hand side of comparison" } */
22 r
+= !a
== (a
| b
); /* { dg-warning "logical not is only applied to the left hand side of comparison" } */
23 r
+= !a
== (a
& b
); /* { dg-warning "logical not is only applied to the left hand side of comparison" } */