aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-01-18 14:23:13 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-01-18 14:23:13 +0000
commitec153f96f8943f1d2418d2248ed219358990bb5f (patch)
tree56eca2b63d21bc3762ac18bf02cf86aa104419d1
parente393f03b1a73d75901d1bc49c99123bdf534e120 (diff)
downloadgcc-ec153f96f8943f1d2418d2248ed219358990bb5f.zip
gcc-ec153f96f8943f1d2418d2248ed219358990bb5f.tar.gz
gcc-ec153f96f8943f1d2418d2248ed219358990bb5f.tar.bz2
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.
-rw-r--r--libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc2
1 files changed, 2 insertions, 0 deletions
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 ab0b17d..131bfb2 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()