[PATCH] Skip tests that depend on the cxx11 std::string

Jonathan Wakely jwakely@redhat.com
Thu Aug 23 11:24:00 GMT 2018


On 23/08/18 11:52 +0100, Jonathan Wakely wrote:
>On 23/08/18 10:03 +0100, Jonathan Wakely wrote:
>>On 23/08/18 09:24 +0100, Jonathan Wakely wrote:
>>>--- a/libstdc++-v3/testsuite/21_strings/basic_string/init-list.cc
>>>+++ b/libstdc++-v3/testsuite/21_strings/basic_string/init-list.cc
>>>@@ -17,6 +17,7 @@
>>>//
>>>
>>>// { dg-do run { target c++11 } }
>>>+// { dg-require-effective-target cxx11-abi }
>>
>>Actually I shouldn't have added it here. It only depends on the new
>>string when compiled with _GLIBCXX_DEBUG, and that should be fixed in
>>__gnu_debug::string not by skipping the test.
>
>Like so.

And one more tweak, for C++98 mode.

Tested x86_64-linux, committed to trunk.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 921 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180823/93c2c1a2/attachment.bin>


More information about the Libstdc++ mailing list