mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-21 01:55:15 +08:00
ab9bd93271
Currently the <experimental/random>, <experimental/source_location> and <experimental/utility> headers can be included in C++98 and C++11 modes, but gives errors. With this change they can be included, but define nothing. libstdc++-v3/ChangeLog: PR libstdc++/98319 * include/experimental/random: Only define contents for C++14 and later. * include/experimental/source_location: Likewise. * include/experimental/utility: Likewise. * testsuite/experimental/feat-lib-fund.cc: Include all LFTS headers that are present. Allow test to run for all modes.
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
// { dg-do preprocess }
|
|
|
|
// Include all the LFTS headers. This should work with any -std flag.
|
|
|
|
#include <experimental/algorithm>
|
|
#include <experimental/any>
|
|
#include <experimental/array>
|
|
#include <experimental/chrono>
|
|
#include <experimental/deque>
|
|
#include <experimental/forward_list>
|
|
#include <experimental/functional>
|
|
#if __has_include(<experimental/future>) // not supported as of GCC 11
|
|
# include <experimental/future>
|
|
#endif
|
|
#include <experimental/iterator>
|
|
#include <experimental/list>
|
|
#include <experimental/map>
|
|
#include <experimental/memory>
|
|
#include <experimental/memory_resource>
|
|
#include <experimental/numeric>
|
|
#include <experimental/optional>
|
|
#include <experimental/propagate_const>
|
|
#include <experimental/random>
|
|
#include <experimental/ratio>
|
|
#include <experimental/regex>
|
|
#include <experimental/set>
|
|
#include <experimental/source_location>
|
|
#include <experimental/string>
|
|
#include <experimental/string_view>
|
|
#include <experimental/system_error>
|
|
#include <experimental/tuple>
|
|
#include <experimental/type_traits>
|
|
#include <experimental/unordered_map>
|
|
#include <experimental/unordered_set>
|
|
#include <experimental/utility>
|
|
#include <experimental/vector>
|