This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Cleanup nullopt_t tests
ClosedPublic

Authored by CaseyCarter on Aug 22 2017, 2:04 PM.

Details

Summary
  • Update specification text from N4387
  • Delete not_brace_initializable.fail.cpp: it's redundant with nullopt_t.fail.cpp
  • is_empty<T> implies is_class<T>
  • is_literal is deprecated; directly verify that we can create a nullopt_t in a constexpr context

Diff Detail

Repository
rL LLVM

Event Timeline

CaseyCarter created this revision.Aug 22 2017, 2:04 PM
STL_MSFT edited edge metadata.Aug 22 2017, 2:10 PM

Otherwise, looks cromulent to me.

test/std/utilities/optional/optional.nullopt/nullopt_t.pass.cpp
38 ↗(On Diff #112222)

You're saying std::nullopt but you already dragged it in.

Don't unnecessarily fully qualify std::nullopt.

CaseyCarter marked an inline comment as done.Aug 22 2017, 2:14 PM
This revision is now accepted and ready to land.Aug 31 2017, 7:04 AM
This revision was automatically updated to reflect the committed changes.