diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-08-26 12:41:37 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-08-26 12:41:37 +0100 |
commit | 52066eae5d3dd6b7c0a1b843469582dbdbb941eb (patch) | |
tree | 95c9553da61de9d5427f8374ba3b15541eaf0709 /libstdc++-v3/testsuite/20_util/scoped_allocator | |
parent | e8223484b3a8b8bbe20dfd70706e3da626f2b962 (diff) | |
download | gcc-52066eae5d3dd6b7c0a1b843469582dbdbb941eb.tar.gz |
Use effective-target instead of -std options
* testsuite/*: Use { target c++11 } or { target c++14 } instead of
using -std in dg-options.
From-SVN: r239777
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/scoped_allocator')
8 files changed, 8 insertions, 15 deletions
diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/1.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/1.cc index bd39ef6b87f..e101fc5a4b3 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/1.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/1.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++11" } +// { dg-do run { target c++11 } } // Copyright (C) 2011-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/2.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/2.cc index 3ded0ac96f0..58b192f1df3 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/2.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/2.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++11" } +// { dg-do run { target c++11 } } // Copyright (C) 2012-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc index 2d52e7c21d3..0a3f8dd89d2 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=gnu++11" } -// { dg-do compile } +// { dg-do compile { target c++11 } } #include <memory> #include <type_traits> diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/69114.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/69114.cc index 6890d187795..a5e71a8192b 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/69114.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/69114.cc @@ -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=gnu++11" } +// { dg-do compile { target c++11 } } // PR libstdc++/69114 diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc index f3b2d87ab99..def8d82732b 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=gnu++11" } -// { dg-do compile } +// { dg-do compile { target c++11 } } // PR libstdc++/69293 diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/propagation.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/propagation.cc index bce197ed49e..e846f102f1c 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/propagation.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/propagation.cc @@ -1,5 +1,4 @@ -// { dg-do compile } -// { dg-options "-std=gnu++11" } +// { dg-do compile { target c++11 } } // Copyright (C) 2011-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/explicit_instantiation.cc index 0354a1205e3..d2327db1f6c 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/explicit_instantiation.cc @@ -1,5 +1,4 @@ -// { dg-options "-std=gnu++11" } -// { dg-do compile } +// { dg-do compile { target c++11 } } // Copyright (C) 2011-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/typedefs.cc index 1fac18d141d..1bb5eb31ce4 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/requirements/typedefs.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++11" } +// { dg-do compile { target c++11 } } // // Copyright (C) 2011-2016 Free Software Foundation, Inc. // @@ -22,8 +22,6 @@ #include <scoped_allocator> -// { dg-do compile } - template<typename T> struct minimal_allocator { |