libstdc++: Fix effective target for new tests [PR 96088]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 1 Jun 2021 18:05:03 +0000 (19:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 1 Jun 2021 18:09:27 +0000 (19:09 +0100)
These tests use <string_view> so must not run for anything older than
C++17.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* testsuite/23_containers/unordered_map/96088.cc: Change
effective target to c++17.
* testsuite/23_containers/unordered_set/96088.cc: Likewise.

libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc
libstdc++-v3/testsuite/23_containers/unordered_set/96088.cc

index 062c831..e552b04 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do run { target c++11 } }
+// { dg-do run { target c++17 } }
 
 // Copyright (C) 2021 Free Software Foundation, Inc.
 //
index 53bb754..efb2f9e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do run { target c++11 } }
+// { dg-do run { target c++17 } }
 
 // Copyright (C) 2021 Free Software Foundation, Inc.
 //