This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [test] Fix logic error in <compare> tests; enable for MSVC previews
ClosedPublic

Authored by CaseyCarter on Oct 26 2018, 7:45 AM.

Details

Summary

Fairly straightforward: these tests were written without an implementation of <=>, and they're incorrectly testing that 0 <=> foo has the behavior that is required for foo <=> 0.

Diff Detail

Event Timeline

CaseyCarter created this revision.Oct 26 2018, 7:45 AM
mclow.lists accepted this revision.Jan 14 2019, 10:00 AM

I'm a bit concerned about the TEST_HAS_NO_SPACESHIP_OPERATOR and how it tracks with _LIBCPP_HAS_NO_SPACESHIP_OPERATOR, but I'm not going to hold this up for that.

This revision is now accepted and ready to land.Jan 14 2019, 10:00 AM

I'm a bit concerned about the TEST_HAS_NO_SPACESHIP_OPERATOR and how it tracks with _LIBCPP_HAS_NO_SPACESHIP_OPERATOR, but I'm not going to hold this up for that.

Same. I tried to convince the compiler guys to define a feature-test macro, but they're paranoid about doing so before it's in the standard. We can clean this up when that happens.

CaseyCarter closed this revision.Jan 14 2019, 6:01 PM

I merged this as r351148.