[mlir][LLVM][NFC] Fix description of `LLVMFixedVectorType` (#126031)
[llvm-project.git] / libcxx / test / std / utilities / smartptr / unique.ptr / unique.ptr.dltr / unique.ptr.dltr.dflt1 / convert_ctor.pass.cpp
blobf95e2d7c794a9486a429f7fb7f0fb34348c4dbb3
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // <memory>
11 // default_delete[]
13 // template <class U>
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(*)[].
19 #include <memory>
20 #include <cassert>
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;
27 ((void)d2);
29 return true;
32 int main(int, char**) {
33 test();
34 #if TEST_STD_VER >= 23
35 static_assert(test());
36 #endif
38 return 0;