From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 29ED43857025; Mon, 3 Jul 2023 23:08:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29ED43857025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688425693; bh=l6VKiknGUGQkhh33b8lqzLPDgbDJskY5MepeTH2+R1Q=; h=From:To:Subject:Date:From; b=l0BWp7JwCXcFueY4cl+FRwOmTcHElCs1q7Lgsr3hGThIokxpQJQ8PSilYiamr7iDH JzEQzvlmO/eLWfcdJyPsTTWu9nG2GrRSVL9C+eHoQjtcZr7VYH8gVRPH+uKCzJNsjh f/heslqHWgInIh7js0aaMwq0+MhlXOT3OIRiGnTk= 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 r14-2274] libstdc++: Fix synopsis test X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 8bef8e713fd5f17c5dee45d9bb7ffca3cf3c0f9d X-Git-Newrev: f9f05e483984bf89fec7778aaa55ece8ba2a86bb Message-Id: <20230703230813.29ED43857025@sourceware.org> Date: Mon, 3 Jul 2023 23:08:13 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f9f05e483984bf89fec7778aaa55ece8ba2a86bb commit r14-2274-gf9f05e483984bf89fec7778aaa55ece8ba2a86bb Author: Jonathan Wakely Date: Mon Jul 3 19:33:18 2023 +0100 libstdc++: Fix synopsis test The header is only supported for the cxx11 ABI. The declarations of basic_syncbuf, basic_osyncstream, syncbuf and osyncstream were already correctly guarded by a check for _GLIBCXX_USE_CXX11_ABI, but the wsyncbuf and wosyncstream declarations were not. libstdc++-v3/ChangeLog: * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and wosyncstream depend on _GLIBCXX_USE_CXX11_ABI. Diff: --- libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc index b6d3fa7a719..12f47ae8133 100644 --- a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc +++ b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc @@ -115,7 +115,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 typedef basic_ofstream wofstream; typedef basic_fstream wfstream; -#if __cplusplus >= 202002L +#if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI typedef basic_syncbuf wsyncbuf; typedef basic_osyncstream wosyncstream; #endif