Message ID | 20170913152953.GA15020@redhat.com |
---|---|
State | New |
Headers | show |
Series | Fix libstdc++ tests using invalid effective-target | expand |
diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc index 727a560cd17..d46ffcd056b 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc @@ -15,7 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do compile { target c++11 } } +// { dg-options "-std=gnu++11" } +// { dg-do compile } #include <functional> diff --git a/libstdc++-v3/testsuite/22_locale/conversions/buffer/2.cc b/libstdc++-v3/testsuite/22_locale/conversions/buffer/2.cc index 8eda714b61d..3efb51ff1c2 100644 --- a/libstdc++-v3/testsuite/22_locale/conversions/buffer/2.cc +++ b/libstdc++-v3/testsuite/22_locale/conversions/buffer/2.cc @@ -15,7 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do run { target c++11 } } +// { dg-options "-std=gnu++11" } +// { dg-do run } #include <locale> #include <sstream> diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc index 7776c5fd557..4c70e0d6241 100644 --- a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc +++ b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc @@ -15,7 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do compile { target c++11 } } +// { dg-options "-std=gnu++11" } +// { dg-do compile } #include <regex> #include <testsuite_iterators.h> @@ -24,7 +25,8 @@ void test01() { char s[] = ""; - __gnu_test::test_container<char, __gnu_test::forward_iterator_wrapper> c(s); + __gnu_test::test_container<char, __gnu_test::forward_iterator_wrapper> + c(s, s+1); std::regex r1(c.begin(), c.end()); std::regex r2(c.begin(), c.end(), std::regex_constants::grep); }