mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 14:26:42 +00:00

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.