llvm-project/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor
Eric Fiselier c1d527d3d8 Fix PR30260 - optional<const T> not working.
This patch fixes PR30260 by using a (void*) cast on the placement argument
to placement new to casts away the const. See also http://llvm.org/PR30260.

As a drive by change this patch also changes the header guard for
<experimental/optional> to _LIBCPP_EXPERIMENTAL_OPTIONAL from _LIBCPP_OPTIONAL.

llvm-svn: 280775
2016-09-07 01:56:07 +00:00
..
const_T.pass.cpp Make it possible to build a no-exceptions variant of libcxx. 2015-11-10 11:41:22 +00:00
copy.pass.cpp Fix PR30260 - optional<const T> not working. 2016-09-07 01:56:07 +00:00
default.pass.cpp [libcxx] Improve tests to use the UNSUPPORTED lit directive 2016-05-28 08:57:35 +00:00
in_place_t.pass.cpp Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
initializer_list.pass.cpp Fix std::experimental::optional tests. Patch from Casey Carter. 2016-07-17 20:32:30 +00:00
move.pass.cpp Fix PR30260 - optional<const T> not working. 2016-09-07 01:56:07 +00:00
nullopt_t.pass.cpp [libcxx] Improve tests to use the UNSUPPORTED lit directive 2016-05-28 08:57:35 +00:00
rvalue_T.pass.cpp Make it possible to build a no-exceptions variant of libcxx. 2015-11-10 11:41:22 +00:00