Commit 4d7ea4fc by Richard Henderson Committed by Richard Henderson

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

From-SVN: r52787
parent 7ba47445
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> 2002-04-25 Roger Sayle <roger@eyesopen.com>
* gcc.dg/i386-memset-1.c: New test case for PR target/6456. * gcc.dg/i386-memset-1.c: New test case for PR target/6456.
......
...@@ -228,7 +228,9 @@ main (void) ...@@ -228,7 +228,9 @@ main (void)
abort (); abort ();
if ((u |= 2) != 1) if ((u |= 2) != 1)
abort (); 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 (); abort ();
/* Test comma expressions. */ /* Test comma expressions. */
u = 1; u = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment