* gcc.dg/c99-bool-1.c: Expect always true warning.

From-SVN: r52787
This commit is contained in:
Richard Henderson 2002-04-26 00:24:39 -07:00 committed by Richard Henderson
parent 7ba47445b3
commit 4d7ea4fc78
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-04-26 Richard Henderson <rth@redhat.com>
* gcc.dg/c99-bool-1.c: Expect always true warning.
2002-04-25 Roger Sayle <roger@eyesopen.com>
* gcc.dg/i386-memset-1.c: New test case for PR target/6456.

View file

@ -228,7 +228,9 @@ main (void)
abort ();
if ((u |= 2) != 1)
abort ();
if ((u ^= 3) != 1)
/* ??? A bit queer, since this gets optimized to ((u = (u != 3)) != 1)
early in semantic analysis, which then yields the warning below. */
if ((u ^= 3) != 1) /* { dg-warning "always true due to limited range" } */
abort ();
/* Test comma expressions. */
u = 1;