From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1725) id CC6743894C1E; Tue, 18 Aug 2020 18:20:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC6743894C1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597774818; bh=TDlmsAfxeG+GbyZXUhzcpR3B+VXyu8WzzIm234mnrqw=; h=From:To:Subject:Date:From; b=oAu932ZMoM/+bGd9mr+wz1IPe5ZUhtc6CtV3/l+wFN1X5d+JxZgSrcMJpxHQctOgs W7bEJmfGPhMvKZVK47PvDKILqIvnQQ6UuFGtbDxamlgX+2u8VGynngG/uCHUy9t738 Mt26jt+VXfwouqVS+7C9ad2YwkxgvglG60NNV4w8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: William Schmidt To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/wschmidt/heads/builtins3)] libstdc++: Ensure c++NN effective-target present in more tests X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/users/wschmidt/heads/builtins3 X-Git-Oldrev: a92e0f58d83eff14bd95cf655903debb1d1a03ad X-Git-Newrev: 9d613af2b45d910b37044cdbd5f8bb2ac279d06d Message-Id: <20200818182018.CC6743894C1E@sourceware.org> Date: Tue, 18 Aug 2020 18:20:18 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 18:20:18 -0000 https://gcc.gnu.org/g:9d613af2b45d910b37044cdbd5f8bb2ac279d06d commit 9d613af2b45d910b37044cdbd5f8bb2ac279d06d Author: Jonathan Wakely Date: Fri Jul 31 19:58:03 2020 +0100 libstdc++: Ensure c++NN effective-target present in more tests Add effective-target keywords to tests that would fail for certain standard modes without the -std=gnu++NN option. libstdc++-v3/ChangeLog: * testsuite/18_support/set_terminate.cc: Require C++11 or higher. * testsuite/28_regex/simple_c++11.cc: Likewise. * testsuite/tr1/headers/c++200x/complex.cc: Likewise. * testsuite/24_iterators/headers/iterator/synopsis.cc: Require C++14 or lower. Diff: --- libstdc++-v3/testsuite/18_support/set_terminate.cc | 2 +- libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc | 2 +- libstdc++-v3/testsuite/28_regex/simple_c++11.cc | 2 +- libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/testsuite/18_support/set_terminate.cc b/libstdc++-v3/testsuite/18_support/set_terminate.cc index 4df6e068f58..b832f30a365 100644 --- a/libstdc++-v3/testsuite/18_support/set_terminate.cc +++ b/libstdc++-v3/testsuite/18_support/set_terminate.cc @@ -16,7 +16,7 @@ // . // { dg-options "-std=gnu++11" } -// { dg-do run } +// { dg-do run { target c++11 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc index e0b364c3834..53bd9c9891c 100644 --- a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc +++ b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++98" } -// { dg-do compile } +// { dg-do compile { target { ! c++17 } } } // { dg-require-normal-namespace "" } // Copyright (C) 2007-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/28_regex/simple_c++11.cc b/libstdc++-v3/testsuite/28_regex/simple_c++11.cc index 056966b238f..8b3fda5c98d 100644 --- a/libstdc++-v3/testsuite/28_regex/simple_c++11.cc +++ b/libstdc++-v3/testsuite/28_regex/simple_c++11.cc @@ -16,7 +16,7 @@ // . // { dg-options "-std=gnu++11" } -// { dg-do compile } +// { dg-do compile { target c++11 } } #include diff --git a/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc index 9eb9d33301c..652b534cd69 100644 --- a/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc +++ b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++11" } +// { dg-do compile { target c++11 } } // Copyright (C) 2011-2020 Free Software Foundation, Inc. //