mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 02:26:05 +00:00

As a follow-up to #117662, this PR provides a comprehensive set of exception tests for the following capacity-related functions in `std::vector`. Specifically, it includes tests for the following functions: - `reserve(size_type)` - `resize(size_type)` and `resize(size_type, const_reference)` - `shrink_to_fit()` Previously, the exception safety tests for these functions were either missing or inadequate. We need a thorough coverage of exception tests to validate that these operations provide strong exception guarantees under various exceptional scenarios.