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 //===----------------------------------------------------------------------===//
8 
9 // <memory>
10 
11 // default_delete[]
12 
13 // template <class U>
14 //   default_delete(const default_delete<U[]>&);
15 //
16 // This constructor shall not participate in overload resolution unless
17 //   U(*)[] is convertible to T(*)[].
18 
19 #include <memory>
20 #include <cassert>
21 
22 #include "test_macros.h"
23 
main(int,char **)24 int main(int, char**)
25 {
26     std::default_delete<int[]> d1;
27     std::default_delete<const int[]> d2 = d1;
28     ((void)d2);
29 
30   return 0;
31 }
32