From 77f3d97909062986b8e1ebb45ee0eb7f63acb05d Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sun, 31 Jul 2016 19:12:28 +0100 Subject: [PATCH] Allow std::pair test to run in C++11 mode too * testsuite/20_util/pair/astuple/get_neg.cc: Use effective-target c++11 instead of setting -std=gnu++14. From-SVN: r238925 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/testsuite/20_util/pair/astuple/get_neg.cc | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b79a4053afd..9c3af44ee81 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2016-07-31 Jonathan Wakely + * testsuite/20_util/pair/astuple/get_neg.cc: Use effective-target + c++11 instead of setting -std=gnu++14. + PR libstdc++/72745 * include/std/array (get): Use positive message for static assertions. * include/std/functional (_Safe_tuple_element_t): Fix indentation. diff --git a/libstdc++-v3/testsuite/20_util/pair/astuple/get_neg.cc b/libstdc++-v3/testsuite/20_util/pair/astuple/get_neg.cc index f980b87ea6a..ea251b83385 100644 --- a/libstdc++-v3/testsuite/20_util/pair/astuple/get_neg.cc +++ b/libstdc++-v3/testsuite/20_util/pair/astuple/get_neg.cc @@ -1,5 +1,4 @@ -// { dg-do compile } -// { dg-options "-std=gnu++14" } +// { dg-do compile { target c++11 } } // Copyright (C) 2013-2016 Free Software Foundation, Inc. // -- 2.30.2