libstdc++: Fix tests that fail for C++98
authorJonathan Wakely <jwakely@redhat.com>
Fri, 31 Jul 2020 18:58:03 +0000 (19:58 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 31 Jul 2020 18:58:36 +0000 (19:58 +0100)
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.

libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc

index 32b604d5b15a2812e7bda9a0f2474af0eaff9678..21097c2bff120fd469e17a13645f9643f1c50969 100644 (file)
@@ -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
index 23d3a0ad1707c99fb68ed5a139ec3ae7f039bce4..2473588d3075902b205d5e0e90256f57ed66cd55 100644 (file)
@@ -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