Fix tests that fail without PCH
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Jun 2019 08:18:17 +0000 (09:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 17 Jun 2019 08:18:17 +0000 (09:18 +0100)
commit9a9c7a625d3813d062a6b17d071bd8cc9fe5cb8b
treeaa317d58a6f20f203c9bfbd20061d1dc039ddd9e
parent61efadedfdc723491bc13cc33bf80bd262465cca
Fix tests that fail without PCH

The recent change to stop transitively including <string> broke some
tests, but only when the library is configured without PCH, because
otherwise the <string> header still gets included via the precompiled
<bits/stdc++.h> header.

* testsuite/20_util/bad_function_call/what.cc: Include <string> header
for std::string.
* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
* testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
header for std::allocator.
* testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
using-declaration for std::size_t.
* testsuite/23_containers/array/tuple_interface/tuple_size.cc:
Likewise.
* testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
std::istream.
* testsuite/23_containers/vector/cons/55977.cc: Likewise.
* testsuite/experimental/map/erasure.cc: Include <string> for
std::string.
* testsuite/experimental/unordered_map/erasure.cc: Likewise.

From-SVN: r272376
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/bad_function_call/what.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc
libstdc++-v3/testsuite/20_util/tuple/cons/allocator_with_any.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_size.cc
libstdc++-v3/testsuite/23_containers/deque/cons/55977.cc
libstdc++-v3/testsuite/23_containers/vector/cons/55977.cc
libstdc++-v3/testsuite/experimental/map/erasure.cc
libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc