blob: 30a46c286e0e4ab48bf48b6d5355a44969aec45a [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-Wlogical-not-parentheses" } */
/* Test that we don't warn if both operands of the comparison
are negated. */
#ifndef __cplusplus
#define bool _Bool
#endif
bool r;
void
same (int a, int b)
{
r = !a == !b;
r = !!a == !!b;
r = !!a == !b;
r = !a == !!b;
}