[Lldb-commits] [lldb] [lldb][test] Merge MSVC STL std::(u8)string tests into generic directory (PR #147525)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 8 07:07:38 PDT 2025


Nerixyz wrote:

> prints as `"abc"`. But libc++ and libstdc++ print it as `"abcd"` (which seems like the more correct thing to do?)

This is too MSVC STL/libc++ specific, I think. `std::string` on MSVC's STL always has a valid size (regardless of SSO or not) and the test tests that this is respected. libc++ should also pass this test, but it currently doesn't, because the string is further up in `main.cpp` than expected (you can see that it has the expected output before `null_str`, but the check is after `null_str`).

https://github.com/llvm/llvm-project/pull/147525


More information about the lldb-commits mailing list