From: Jonathan Wakely Date: Mon, 18 Jan 2021 14:23:13 +0000 (+0000) Subject: libstdc++: Only test writing to wostream if supported [PR 98725] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec153f96f8943f1d2418d2248ed219358990bb5f;p=gcc.git 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 --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()