2 /* { dg-do compile } */
3 /* { dg-options "-Wlogical-not-parentheses" } */
14 r
= !b
== 1; /* { dg-bogus "logical not is only applied to the left hand side of comparison" } */
15 r
= !b
!= 1; /* { dg-bogus "logical not is only applied to the left hand side of comparison" } */
16 r
= !b
> 1; /* { dg-bogus "logical not is only applied to the left hand side of comparison" } */
17 r
= !b
>= 1; /* { dg-bogus "logical not is only applied to the left hand side of comparison" } */
18 r
= !b
< 1; /* { dg-bogus "logical not is only applied to the left hand side of comparison" } */
19 r
= !b
<= 1; /* { dg-bogus "logical not is only applied to the left hand side of comparison" } */