Details
Details
- Reviewers
ldionne EricWF - Group Reviewers
Restricted Project - Commits
- rGa4c805600ef2: [libc++] Robust against C++20-hostile iterators
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/test/std/algorithms/robust_against_cpp20_hostile_iterators.compile.pass.cpp | ||
---|---|---|
9 ↗ | (On Diff #436456) |
Comment Actions
I still think it would be nice to produce a minimal test that actually ran (no need to check any output). Since having a runnable test would allow the sanitizers to pick up any weird bugs Cpp20HostileIterator causes at runtime.
But as a CI fix, this LGTM once the comments about undefined symbols have been addressed.
libcxx/test/std/algorithms/robust_against_cpp20_hostile_iterators.compile.pass.cpp | ||
---|---|---|
67 ↗ | (On Diff #436523) | You'll want to define this constructor too. |
76 ↗ | (On Diff #436523) | You might as well run these tests over some meaningful input. Then if our implementations do something else weird there's a chance the sanitizers can catch it. |
Comment Actions
- Try to fix CI
- move the test to test/libcxx/
libcxx/test/std/algorithms/robust_against_cpp20_hostile_iterators.compile.pass.cpp | ||
---|---|---|
76 ↗ | (On Diff #436523) | This should be catched by the runtime tests. They already run with a bunch of different iterator types. This test is just to make sure that the classic STL algorithms can still be instantiated with not-so-nice iterators. |