This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Tidy up tests for deduction guides and other compile-time failing properties in std::string
ClosedPublic

Authored by ldionne on Apr 4 2022, 10:51 AM.

Details

Summary

Instead of using .fail.cpp tests, use .verify.cpp to check for the
exact reason of the failure. In the case of deduction guides, use SFINAE
based tests instead since that is our preferred way of testing those.

Finally, ensure that we actually run the test in iter_alloc_deduction.pass.cpp,
since we were not running anything before.

Diff Detail

Event Timeline

ldionne created this revision.Apr 4 2022, 10:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2022, 10:51 AM
ldionne requested review of this revision.Apr 4 2022, 10:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2022, 10:51 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Apr 5 2022, 7:52 AM
This revision is now accepted and ready to land.Apr 5 2022, 7:52 AM
libcxx/test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp