aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wshift-count-overflow-1.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2017-04-18 12:08:00 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2017-04-18 12:08:00 +0100
commit38d68cf0f5dae47c558e2ea2a9bf652788a19eeb (patch)
treef1da49d134b59a41eab81dbf0982d1e9c2227f21 /gcc/testsuite/c-c++-common/Wshift-count-overflow-1.c
parentd6e3e8a54cfb57df98db48d728844231f24c0661 (diff)
downloadgcc-38d68cf0f5dae47c558e2ea2a9bf652788a19eeb.zip
gcc-38d68cf0f5dae47c558e2ea2a9bf652788a19eeb.tar.gz
gcc-38d68cf0f5dae47c558e2ea2a9bf652788a19eeb.tar.bz2
Fix incorrect results from std::boyer_moore_searcher
* include/std/functional (default_searcher, __boyer_moore_array_base) (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher) (boyer_moore_horspool_searcher): Remove redundant namespace qualification. (default_searcher::operator()): Construct return value early and advance second member in-place. (boyer_moore_horspool_searcher::operator()): Increment random access iterator directly instead of using std::next. (boyer_moore_searcher::operator()): Fix return value. * testsuite/20_util/function_objects/searchers.cc: Check both parts of return values. From-SVN: r246964
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wshift-count-overflow-1.c')
0 files changed, 0 insertions, 0 deletions