public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-3868] libstdc++: Enable tests that incorrectly require cxx11-abi
@ 2020-10-14 11:53 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-10-14 11:53 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:5ae9ddd480f97ba16b9b9d11d333e1252b820166

commit r11-3868-g5ae9ddd480f97ba16b9b9d11d333e1252b820166
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Oct 14 12:05:57 2020 +0100

    libstdc++: Enable tests that incorrectly require cxx11-abi
    
    These tests were not being run when -D_GLIBCXX_USE_CXX11_ABI=0 was added
    to the test flags, but they actually work OK with the old string.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
            Do not require cxx11-abi effective target.
            * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
            Likewise.
            * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.

Diff:
---
 .../testsuite/21_strings/basic_string/allocator/char/minimal.cc   | 8 +++-----
 .../21_strings/basic_string/allocator/wchar_t/minimal.cc          | 8 +++-----
 libstdc++-v3/testsuite/27_io/basic_fstream/cons/base.cc           | 1 -
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/minimal.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/minimal.cc
index 2e7c7e2d4a4..3493f630920 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/minimal.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/minimal.cc
@@ -5,25 +5,23 @@
 // terms of the GNU General Public License as published by the
 // Free Software Foundation; either version 3, or (at your option)
 // any later version.
- 
+
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
- 
+
 // You should have received a copy of the GNU General Public License along
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
-// COW strings don't support C++11 allocators:
-// { dg-require-effective-target cxx11-abi }
 
 #include <string>
 #include <memory>
 #include <testsuite_hooks.h>
 #include <testsuite_allocator.h>
- 
+
 using C = char;
 const C c = 'a';
 using traits = std::char_traits<C>;
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc
index ed791747df3..5f057e84dbf 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc
@@ -5,25 +5,23 @@
 // terms of the GNU General Public License as published by the
 // Free Software Foundation; either version 3, or (at your option)
 // any later version.
- 
+
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
- 
+
 // You should have received a copy of the GNU General Public License along
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
-// COW strings don't support C++11 allocators:
-// { dg-require-effective-target cxx11-abi }
 
 #include <string>
 #include <memory>
 #include <testsuite_hooks.h>
 #include <testsuite_allocator.h>
- 
+
 using C = wchar_t;
 const C c = L'a';
 using traits = std::char_traits<C>;
diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/cons/base.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/cons/base.cc
index 50a45faacdc..1e7be126212 100644
--- a/libstdc++-v3/testsuite/27_io/basic_fstream/cons/base.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_fstream/cons/base.cc
@@ -17,7 +17,6 @@
 
 // { dg-options "-O0" }
 // { dg-do link { target c++11 } }
-// { dg-require-effective-target cxx11-abi }
 
 #include <fstream>
 #include <string>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-14 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 11:53 [gcc r11-3868] libstdc++: Enable tests that incorrectly require cxx11-abi Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).