From 8011f718e241febd6b7a9dae01cde49817f299c4 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 31 Jul 2020 19:58:03 +0100 Subject: [PATCH] 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. --- .../testsuite/27_io/basic_istream/ignore/char/94749.cc | 4 ++-- .../testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2