From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 29DF7384A02D; Mon, 18 Jan 2021 14:23:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29DF7384A02D 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 r11-6771] libstdc++: Only test writing to wostream if supported [PR 98725] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: e393f03b1a73d75901d1bc49c99123bdf534e120 X-Git-Newrev: ec153f96f8943f1d2418d2248ed219358990bb5f Message-Id: <20210118142319.29DF7384A02D@sourceware.org> Date: Mon, 18 Jan 2021 14:23:19 +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: Mon, 18 Jan 2021 14:23:19 -0000 https://gcc.gnu.org/g:ec153f96f8943f1d2418d2248ed219358990bb5f commit r11-6771-gec153f96f8943f1d2418d2248ed219358990bb5f Author: Jonathan Wakely Date: Mon Jan 18 14:23:13 2021 +0000 libstdc++: Only test writing to wostream if supported [PR 98725] libstdc++-v3/ChangeLog: PR libstdc++/98725 * testsuite/20_util/unique_ptr/io/lwg2948.cc: Do not try to write to a wide character stream if wide character support is disabled in the library. Diff: --- libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc index ab0b17d2b1c..131bfb24ed7 100644 --- a/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc +++ b/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc @@ -73,8 +73,10 @@ template static_assert( streamable>> ); static_assert( ! streamable>> ); +#ifdef _GLIBCXX_USE_WCHAR_T static_assert( ! streamable>> ); static_assert( streamable>> ); +#endif void test02()