Such environments do have aligned allocation functions these days, but
the RTTI type name test needs to be adjusted for the MSVC C++ ABI.
Details
- Reviewers
ldionne • Quuxplusone - Group Reviewers
Restricted Project - Commits
- rG4baf369cde74: [libcxx] [test] Fix the new_faligned_allocation.pass.cpp test for MSVC
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/test/libcxx/language.support/support.dynamic/new_faligned_allocation.pass.cpp | ||
---|---|---|
80 | Shouldn't this use TEST_COMPILER_C1XX? Tests generally don't mess with implementation macros like _MSC_VER directly, but only through the test_macros.h helpers. |
libcxx/test/libcxx/language.support/support.dynamic/new_faligned_allocation.pass.cpp | ||
---|---|---|
80 | This isn’t so much about the compiler itself, but the platform ABI. With clang-cl, you don’t get that macro defined, but only TEST_COMPILER_CLANG, while it obeys the Microsoft C++ ABI. I don’t see any existing defines there for that aspect. |
libcxx/test/libcxx/language.support/support.dynamic/new_faligned_allocation.pass.cpp | ||
---|---|---|
80 | Well, I'm not interested in blocking this over that, so ship it, I guess. :) |
Shouldn't this use TEST_COMPILER_C1XX? Tests generally don't mess with implementation macros like _MSC_VER directly, but only through the test_macros.h helpers.