public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
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]
Date: Mon, 18 Jan 2021 14:23:19 +0000 (GMT)	[thread overview]
Message-ID: <20210118142319.29DF7384A02D@sourceware.org> (raw)

https://gcc.gnu.org/g:ec153f96f8943f1d2418d2248ed219358990bb5f

commit r11-6771-gec153f96f8943f1d2418d2248ed219358990bb5f
Author: Jonathan Wakely <jwakely@redhat.com>
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<typename D>
 
 static_assert( streamable<std::ostream, Unique_ptr<deleter<char>>> );
 static_assert( ! streamable<std::ostream, Unique_ptr<deleter<wchar_t>>> );
+#ifdef _GLIBCXX_USE_WCHAR_T
 static_assert( ! streamable<std::wostream, Unique_ptr<deleter<char>>> );
 static_assert( streamable<std::wostream, Unique_ptr<deleter<wchar_t>>> );
+#endif
 
 void
 test02()


                 reply	other threads:[~2021-01-18 14:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210118142319.29DF7384A02D@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).