diff options
author | Peng Liu <winner245@hotmail.com> | 2025-03-19 12:28:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 12:28:11 -0400 |
commit | b350bc2c0b88488f6c4eb84aadd4e74c67ca9b06 (patch) | |
tree | f54cb6477ec1f9ec2c5bd513b635efbf1b795cec /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 9a078a372ea69eb2d3f0700dfa14809648e78a88 (diff) | |
download | llvm-b350bc2c0b88488f6c4eb84aadd4e74c67ca9b06.zip llvm-b350bc2c0b88488f6c4eb84aadd4e74c67ca9b06.tar.gz llvm-b350bc2c0b88488f6c4eb84aadd4e74c67ca9b06.tar.bz2 |
[libc++] Verify forward_list self-merging is a no-op (#129985)
https://wg21.link/LWG3088 requires that `forward_list::merge()` is a no-op when passed
`*this`, which aligns with the behavior of `list::merge`. Although libc++'s implementation
of `forward_list::merge()` already meets this requirement, there were no tests to verify
this behavior. This patch adds the necessary tests to ensure that self-merging remains a
no-op and prevents any future regressions on this.
Closes #104942.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions