llvm-project/libcxx/test/std/utilities/optional/optional.object
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.object.assign Fix UB in one libcxx test, when deleting D through a pointer to B. 2020-11-04 17:34:05 -05:00
optional.object.ctor [libc++] NFC: Fix several GCC warnings in the test suite 2020-10-30 12:48:05 -04:00
optional.object.dtor [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.object.mod [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional.object.observe [libc++] Split off debug tests that were missed by ce1365f8f7 into test/libcxx 2020-10-14 12:02:37 -04:00
optional.object.swap [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
optional_requires_destructible_object.fail.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
special_members.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
triviality.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
types.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00