From: Jonathan Wakely Date: Fri, 31 Jul 2020 18:58:03 +0000 (+0100) Subject: libstdc++: Fix tests that fail for C++98 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8011f718e241febd6b7a9dae01cde49817f299c4;p=gcc.git libstdc++: Fix tests that fail for C++98 libstdc++-v3/ChangeLog: * testsuite/27_io/basic_istream/ignore/char/94749.cc: Use 0 instead of nullptr. * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc: Likewise. --- diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc index 32b604d5b15..21097c2bff1 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc @@ -165,7 +165,7 @@ test05() VERIFY(in.gcount() == std::numeric_limits::max()); VERIFY(in.get() == T::eof()); - delete in.rdbuf(nullptr); + delete in.rdbuf(0); } void @@ -210,7 +210,7 @@ test06() VERIFY(in.gcount() == std::numeric_limits::max()); VERIFY(in.get() == T::eof()); - delete in.rdbuf(nullptr); + delete in.rdbuf(0); } int diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc index 23d3a0ad170..2473588d307 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc @@ -165,7 +165,7 @@ test05() VERIFY(in.gcount() == std::numeric_limits::max()); VERIFY(in.get() == T::eof()); - delete in.rdbuf(nullptr); + delete in.rdbuf(0); } void @@ -210,7 +210,7 @@ test06() VERIFY(in.gcount() == std::numeric_limits::max()); VERIFY(in.get() == T::eof()); - delete in.rdbuf(nullptr); + delete in.rdbuf(0); } int