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.
This commit is contained in:
parent
e393f03b1a
commit
ec153f96f8
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue