]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Enable tests that incorrectly require cxx11-abi
authorJonathan Wakely <jwakely@redhat.com>
Wed, 14 Oct 2020 11:05:57 +0000 (12:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 20 Oct 2020 17:11:15 +0000 (18:11 +0100)
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.

(cherry picked from commit 5ae9ddd480f97ba16b9b9d11d333e1252b820166)

libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/minimal.cc
libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc
libstdc++-v3/testsuite/27_io/basic_fstream/cons/base.cc

index 2e7c7e2d4a49ec562d01641b66c24e3ea75d4ce0..3493f63092004fdfb1e4aa0b162a54e4f006bc5e 100644 (file)
@@ -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>;
index ed791747df33336cad980c288264ab9d946aef44..5f057e84dbf317681f5e12a3dfc91d369cfb0273 100644 (file)
@@ -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>;
index 50a45faacdcfbc1bcd8462810c74084a8db77d3c..1e7be12621289adc3ae1dea35393b473df9655af 100644 (file)
@@ -17,7 +17,6 @@
 
 // { dg-options "-O0" }
 // { dg-do link { target c++11 } }
-// { dg-require-effective-target cxx11-abi }
 
 #include <fstream>
 #include <string>
This page took 0.088213 seconds and 5 git commands to generate.