From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 64043386EC51; Tue, 1 Jun 2021 18:03:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64043386EC51 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-1148] libstdc++: Fix new test for C++98 mode [PR 89728] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 250cf86735fc9e088cc2309c520adb655790eb99 X-Git-Newrev: b514fce354b5309a9c232a3fe9347e3abde4385f Message-Id: <20210601180322.64043386EC51@sourceware.org> Date: Tue, 1 Jun 2021 18:03:22 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2021 18:03:22 -0000 https://gcc.gnu.org/g:b514fce354b5309a9c232a3fe9347e3abde4385f commit r12-1148-gb514fce354b5309a9c232a3fe9347e3abde4385f Author: Jonathan Wakely Date: Tue Jun 1 19:01:37 2021 +0100 libstdc++: Fix new test for C++98 mode [PR 89728] The isblank class is not supported until C++11. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * testsuite/22_locale/ctype/is/string/89728_neg.cc: Only test isblank for C++11 and later. Diff: --- libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc index 9f15620c9a8..89843b68494 100644 --- a/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc +++ b/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc @@ -45,7 +45,9 @@ void test01() std::isxdigit(make_str(), loc); // { dg-error "required from here" } std::isalnum(make_str(), loc); // { dg-error "required from here" } std::isgraph(make_str(), loc); // { dg-error "required from here" } - std::isblank(make_str(), loc); // { dg-error "required from here" } +#if __cplusplus >= 201103 + std::isblank(make_str(), loc); // { dg-error "required from here" "" { target c++11 } } +#endif std::toupper(make_str(), loc); // { dg-error "required from here" } std::tolower(make_str(), loc); // { dg-error "required from here" } } @@ -66,7 +68,9 @@ void test02() std::isxdigit(make_str(), loc); // { dg-error "required from here" } std::isalnum(make_str(), loc); // { dg-error "required from here" } std::isgraph(make_str(), loc); // { dg-error "required from here" } - std::isblank(make_str(), loc); // { dg-error "required from here" } +#if __cplusplus >= 201103 + std::isblank(make_str(), loc); // { dg-error "required from here" "" { target c++11 } } +#endif std::toupper(make_str(), loc); // { dg-error "required from here" } std::tolower(make_str(), loc); // { dg-error "required from here" } }