libstdc++: Change compile-only test to run
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Mar 2020 09:47:15 +0000 (09:47 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 10 Mar 2020 09:47:15 +0000 (09:47 +0000)
The 24_iterators/ostream_iterator/1.cc test uses VERIFY and so is
obviously meant to have been run, not just compiled.

* testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Add
comment explaining multiple dg-do directives.
* testsuite/24_iterators/ostream_iterator/1.cc: Fix do-do directive
so test is run as well as compiled.

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/unordered_set/allocator/ext_ptr.cc
libstdc++-v3/testsuite/24_iterators/ostream_iterator/1.cc

index be382dc4e6399a5c25501f666fe0c8e583e9ec79..bd4b7a80999ed7c70d304278f6bfcef7c09034cb 100644 (file)
@@ -1,3 +1,10 @@
+2020-03-10  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Add
+       comment explaining multiple dg-do directives.
+       * testsuite/24_iterators/ostream_iterator/1.cc: Fix do-do directive
+       so test is run as well as compiled.
+
 2020-03-09  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/94063
index 5cbc76e0d8c193ef723eff8d7192ed449c968921..f6b908ac03ef03a59ff3eee549fc121cd66de863 100644 (file)
@@ -15,6 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// This test fails to compile since C++17 (see xfail-if below) so we can only
+// do a "run" test for C++11 and C++14, and a "compile" test for C++17 and up.
 // { dg-do run { target { c++11_only || c++14_only } } }
 // { dg-do compile { target c++17 } }
 
index 640ff61afa77d4307b9f626f37f44fac6f4d020a..718dad3b684f26cfb6f7c2f8d6d8300ac6521021 100644 (file)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile { target c++11 } }
+// { dg-do run { target c++11 } }
 
 #include <iterator>
 #include <sstream>