diff options
author | Peng Liu <winner245@hotmail.com> | 2025-02-26 11:57:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-26 11:57:57 -0500 |
commit | f161b1b5265baadc443506b88bd1084adccaef90 (patch) | |
tree | 1ef0b2b7dd96a648408bfe114937a53da9a7df58 /libcxx/include/__algorithm/reverse.h | |
parent | 8039f8e139aa52561d3482d61328fe7f370056e7 (diff) | |
download | llvm-f161b1b5265baadc443506b88bd1084adccaef90.zip llvm-f161b1b5265baadc443506b88bd1084adccaef90.tar.gz llvm-f161b1b5265baadc443506b88bd1084adccaef90.tar.bz2 |
[libc++][test] Refactor tests for rotate and rotate_copy (#126458)
This PR refactors the tests and fix some problems:
- Refactor similar tests using `types::for_each` to remove redundant code;
- Explicitly include the missing header `type_algorithms.h` instead of relying
on a transitive include;
- Fix the incorrect constexpr declaration in `rotate.pass.cpp`, where
the `test()` function is incorrectly defined as `TEST_CONSTEXPR_CXX17`,
which is wrong since `std::rotate()` becomes constexpr only since C++20.
Diffstat (limited to 'libcxx/include/__algorithm/reverse.h')
0 files changed, 0 insertions, 0 deletions