[committed,1/2] libstdc++: Fix tests that fail for C++98

Message ID 20200731190251.GA1313311@redhat.com
State New
Headers show
Series
  • [committed,1/2] libstdc++: Fix tests that fail for C++98
Related show

Commit Message

H.J. Lu via Gcc-patches July 31, 2020, 7:02 p.m.
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.

Tested powerpc64le-linux, committed to trunk.
commit 8011f718e241febd6b7a9dae01cde49817f299c4
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Jul 31 19:58:03 2020

    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.

Patch

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<std::streamsize>::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<std::streamsize>::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<std::streamsize>::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<std::streamsize>::max());
   VERIFY(in.get() == T::eof());
 
-  delete in.rdbuf(nullptr);
+  delete in.rdbuf(0);
 }
 
 int