diff options
author | Igor Zhukov <fsb4000@yandex.ru> | 2022-08-02 20:45:28 -0400 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-08-05 01:04:08 -0700 |
commit | e1f8795f90215091c1c12c9b1568a52e510ca74a (patch) | |
tree | e83aa1ec01d85819a53a1a2273d2db8cc0723d06 | |
parent | 90351d02c98a8feaac5217bee7342afd0892b525 (diff) |
[libc++][NFC] Don't rely on `<algorithm>` transitively including `<memory>` in tests
Found by @cpplearner (https://github.com/microsoft/STL/pull/2976#discussion_r935440806)
Differential Revision: https://reviews.llvm.org/D130997
(cherry picked from commit 495519e5f8232d144ed26e9c18dbcbac6a5f25eb)
-rw-r--r-- | libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp b/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp index 870fe1a9cf13..7198a3408e28 100644 --- a/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp +++ b/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp @@ -14,6 +14,7 @@ // ensure that all result alias declarations are defined #include <algorithm> +#include <memory> #include <type_traits> using namespace std::ranges; |