1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 // constexpr default_delete(const default_delete<U[]>&); // constexpr since C++23
16 // This constructor shall not participate in overload resolution unless
17 // U(*)[] is convertible to T(*)[].
22 #include "test_macros.h"
24 TEST_CONSTEXPR_CXX23
bool test() {
25 std::default_delete
<int[]> d1
;
26 std::default_delete
<const int[]> d2
= d1
;
32 int main(int, char**) {
34 #if TEST_STD_VER >= 23
35 static_assert(test());