libstdc++: Replace dg-options "-std=c++11" with dg-add-options strict_std
These tests can (and should) also be run for later standards, so replace the { dg-options "-std=c++11" } with { dg-add-options strict_std } and a target selector for c++11. libstdc++-v3/ChangeLog: * testsuite/23_containers/deque/48101-2_neg.cc: Replace dg-options with target selector. * testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise. * testsuite/23_containers/list/48101-2_neg.cc: Likewise. * testsuite/23_containers/map/48101-2_neg.cc: Likewise. * testsuite/23_containers/map/48101_neg.cc: Likewise. * testsuite/23_containers/multimap/48101-2_neg.cc: Likewise. * testsuite/23_containers/multimap/48101_neg.cc: Likewise. * testsuite/23_containers/multiset/48101-2_neg.cc: Likewise. * testsuite/23_containers/set/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_map/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_set/48101-2_neg.cc: Likewise. * testsuite/23_containers/vector/48101-2_neg.cc: Likewise.
This commit is contained in:
parent
3a0e01f6bb
commit
52841fb703
14 changed files with 26 additions and 28 deletions
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <deque>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <forward_list>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <list>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <set>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <set>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-do compile }
|
||||
// { dg-options "-std=c++11" }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-add-options strict_std }
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue