llvm-project/libcxx/test/std/utilities/optional
Arthur O'Dwyer 418de7d5d8 Fix UB in one libcxx test, when deleting D through a pointer to B.
This undefined behavior was found by applying Lénárd Szolnoki's proposal
to disable implicit conversion of default_delete<D> to default_delete<B>.

The offending part of the test is circa line 243.

The wording that makes it undefined behavior is http://eel.is/c++draft/expr.delete#3 .

Differential Revision: https://reviews.llvm.org/D90536
2020-11-04 17:34:05 -05:00
..
optional.bad_optional_access [libc++] Remove shortcut Lit features for Apple backdeployment 2020-07-16 15:39:08 -04:00
optional.comp_with_t [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.hash [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.nullops [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.nullopt [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.object Fix UB in one libcxx test, when deleting D through a pointer to B. 2020-11-04 17:34:05 -05:00
optional.relops [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.specalg [libc++] Remove shortcut Lit features for Apple backdeployment 2020-07-16 15:39:08 -04:00
optional.syn [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00