Fix std::midpoint(T*, T*) for reversed arguments
authorJonathan Wakely <jwakely@redhat.com>
Fri, 24 May 2019 15:39:35 +0000 (16:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 24 May 2019 15:39:35 +0000 (16:39 +0100)
commit09b4000c7c5b359ec62b5d621daf6ab95233ce10
treed1955671c56d1a18942b8494f57a049d9bfc0b51
parente8daba7e0630c75c1e1d989f18c282b43fc2e1ef
Fix std::midpoint(T*, T*) for reversed arguments

* include/std/numeric (midpoint(T*, T*)): Fix incorrect result.
* testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test
to "run".

From-SVN: r271606
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/numeric
libstdc++-v3/testsuite/26_numerics/midpoint/pointer.cc