This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][test] fix allocator in allocator_propagation test
ClosedPublic

Authored by CaseyCarter on Aug 3 2022, 9:46 AM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Commits
rGd65e66abb3bd: [libcxx][test] fix allocator in allocator_propagation test
Summary

The converting constructor is ill-formed, and == is missing. (I didn't implement != since the test is C++20-and-later only; I'll let the compiler do it for us.)

Drive-by: change 4-space indent on line 27 to 2-space indent to be consistent with the rest of the test.

Diff Detail

Event Timeline

CaseyCarter created this revision.Aug 3 2022, 9:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2022, 9:46 AM
CaseyCarter requested review of this revision.Aug 3 2022, 9:46 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptAug 3 2022, 9:46 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 4 2023, 3:34 PM
This revision was automatically updated to reflect the committed changes.
philnik added a subscriber: philnik.Jan 4 2023, 3:38 PM

Please don't land unreviewed libc++ patches. If you need to land it for some reason, please ping instead of just committing.

libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/allocator_propagation.pass.cpp
27

This indentation was correct. We indent initializers four spaces.

Please don't land unreviewed libc++ patches. If you need to land it for some reason, please ping instead of just committing.

Fair enough. Now that I've proven I can't correctly determine when a change is small and simple enough for post-commit review, I'll post everything. I've submitted https://reviews.llvm.org/D141157 to revert the indentation damage.