PR target/83368
[official-gcc.git] / gcc / testsuite / c-c++-common / pr49706-2.c
blob30a46c286e0e4ab48bf48b6d5355a44969aec45a
1 /* { dg-do compile } */
2 /* { dg-options "-Wlogical-not-parentheses" } */
4 /* Test that we don't warn if both operands of the comparison
5 are negated. */
7 #ifndef __cplusplus
8 #define bool _Bool
9 #endif
11 bool r;
13 void
14 same (int a, int b)
16 r = !a == !b;
17 r = !!a == !!b;
18 r = !!a == !b;
19 r = !a == !!b;