aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>1999-02-26 06:00:48 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-02-26 06:00:48 +0000
commit7c11f9d50f0c473df812264626f24a20b0138bcd (patch)
tree3ede277a9b9cdb962f70b2b075997d4747e0431b
parent0e9264a2d44cda93785381e21512a9b88b769036 (diff)
downloadgcc-7c11f9d50f0c473df812264626f24a20b0138bcd.zip
gcc-7c11f9d50f0c473df812264626f24a20b0138bcd.tar.gz
gcc-7c11f9d50f0c473df812264626f24a20b0138bcd.tar.bz2
Don't shift signed positive integers into the sign bit
From-SVN: r25455
-rw-r--r--gcc/testsuite/gcc.dg/cpp-if3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp-if3.c b/gcc/testsuite/gcc.dg/cpp-if3.c
index 2d5b676..6dfe39d 100644
--- a/gcc/testsuite/gcc.dg/cpp-if3.c
+++ b/gcc/testsuite/gcc.dg/cpp-if3.c
@@ -13,7 +13,7 @@
/* Check left/right shifting with all bits set and with one bit set. */
#if !(~0ULL >> 63) || !(~0ULL << 63) || !(~0LL >> 63) || !(~0LL << 63) || \
- !(LL_MIN >> 63) || !(1LL << 63) || !(ULL_MAX >> 63) || !(1ULL << 63)
+ !(LL_MIN >> 63) || !(1LL << 62) || !(ULL_MAX >> 63) || !(1ULL << 63)
#error "bit shift truncation" /* { dg-bogus "trunc" "bit shift truncation" } */
#endif