This is an archive of the discontinued LLVM Phabricator instance.

[libc++][test] LWG2857 test coverage for variant
ClosedPublic

Authored by EricWF on Apr 14 2017, 8:56 PM.

Details

Summary

As the saying goes, "works on my machine."

NOTE: libc++ variant does not yet implement LWG2857 and will not pass these tests; MSVC variant does.

Changes under TEST_VARIANT_HAS_NO_REFERENCES are dry-coded; I figure that's better than nothing.

Diff Detail

Event Timeline

CaseyCarter created this revision.Apr 14 2017, 8:56 PM
EricWF edited edge metadata.Apr 14 2017, 9:36 PM

Give me a day to implement this in variant and then this should be ready to land.

Give me a day to implement this in variant and then this should be ready to land.

No rush; the patch isn't going anywhere ;)

EricWF commandeered this revision.Apr 15 2017, 12:45 PM
EricWF edited reviewers, added: CaseyCarter; removed: EricWF.

LGTM, Thanks @CaseyCarter.

I committed these tests and the changes to libc++'s variant in r300403.

I'm hijacking this revision so I can close it.

EricWF accepted this revision.Apr 15 2017, 12:46 PM
This revision is now accepted and ready to land.Apr 15 2017, 12:46 PM
EricWF closed this revision.Apr 15 2017, 12:46 PM