This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [test] Add tests for std::span construction from various initializer lists.
ClosedPublic

Authored by Quuxplusone on Jan 1 2022, 1:26 PM.

Details

Summary

This is related to P2447 "std::span<const T> should be constructible from std::initializer_list<T>," but doesn't implement the proposal — instead, it simply adds test coverage for the bits that would change as a result of the proposal (and also for some bits that wouldn't change, but are related and lack any test coverage today).

(I'm hoping this can be rubberstamped, but will still wait for CI to come back and be green before I land it.)

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Jan 1 2022, 1:26 PM
Quuxplusone created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptJan 1 2022, 1:26 PM
jloser accepted this revision.Jan 2 2022, 8:19 PM
ldionne accepted this revision.Jan 3 2022, 1:38 PM

Please rebase onto main to trigger CI. Thanks for adding this coverage.

This revision is now accepted and ready to land.Jan 3 2022, 1:38 PM

Poke buildkite

This revision was landed with ongoing or failed builds.Jan 4 2022, 11:25 AM
This revision was automatically updated to reflect the committed changes.