From e38efe12daf83d09c52419460fbe8b2e0376dd87 Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Thu, 31 Aug 2017 17:56:31 +0000 Subject: [test] Cleanup nullopt_t tests * Update specification text from N4387 * Delete not_brace_initializable.fail.cpp: it's redundant with nullopt_t.fail.cpp * is_empty implies is_class * is_literal is deprecated; directly verify that we can create a nullopt_t in a constexpr context Differential Revision: D37024 llvm-svn: 312256 --- .../std/utilities/optional/optional.nullopt/nullopt_t.fail.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libcxx/test/std/utilities/optional/optional.nullopt/nullopt_t.fail.cpp') diff --git a/libcxx/test/std/utilities/optional/optional.nullopt/nullopt_t.fail.cpp b/libcxx/test/std/utilities/optional/optional.nullopt/nullopt_t.fail.cpp index 84f1e78ca2a..c97bebe29c3 100644 --- a/libcxx/test/std/utilities/optional/optional.nullopt/nullopt_t.fail.cpp +++ b/libcxx/test/std/utilities/optional/optional.nullopt/nullopt_t.fail.cpp @@ -11,15 +11,13 @@ // // struct nullopt_t{see below}; -// constexpr nullopt_t nullopt(unspecified); +// inline constexpr nullopt_t nullopt(unspecified); // [optional.nullopt]/2: -// Type nullopt_t shall not have a default constructor or an initializer-list constructor. -// It shall not be an aggregate and shall be a literal type. -// Constant nullopt shall be initialized with an argument of literal type. +// Type nullopt_t shall not have a default constructor or an initializer-list +// constructor, and shall not be an aggregate. #include -#include "test_macros.h" int main() { -- cgit v1.2.3