diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-07-03 19:33:18 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-07-18 10:06:21 +0100 |
commit | d2c737c40c7c5835f744df1da04fd975d934ab5b (patch) | |
tree | 1dbbe132e5873c16092c287658b07261fdcfd5a6 | |
parent | c17539d71b287fd3b7cd781af1f1dffabef659ee (diff) | |
download | gcc-d2c737c40c7c5835f744df1da04fd975d934ab5b.zip gcc-d2c737c40c7c5835f744df1da04fd975d934ab5b.tar.gz gcc-d2c737c40c7c5835f744df1da04fd975d934ab5b.tar.bz2 |
libstdc++: Fix <iosfwd> synopsis test
The <syncstream> header is only supported for the cxx11 ABI. The
declarations of basic_syncbuf, basic_osyncstream, syncbuf and
osyncstream were already correctly guarded by a check for
_GLIBCXX_USE_CXX11_ABI, but the wsyncbuf and wosyncstream declarations
were not.
libstdc++-v3/ChangeLog:
* testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
(cherry picked from commit f9f05e483984bf89fec7778aaa55ece8ba2a86bb)
-rw-r--r-- | libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc index b6d3fa7..12f47ae 100644 --- a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc +++ b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc @@ -115,7 +115,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 typedef basic_ofstream<wchar_t> wofstream; typedef basic_fstream<wchar_t> wfstream; -#if __cplusplus >= 202002L +#if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI typedef basic_syncbuf<wchar_t> wsyncbuf; typedef basic_osyncstream<wchar_t> wosyncstream; #endif |