blob: a611b1a12f0508abcf3c6c5ed4ea3bd588069039 [file] [log] [blame]
Marshall Clow5425ba02016-02-25 15:25:29 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <memory>
11
12// default_delete[]
13
14// template <class U>
15// default_delete(const default_delete<U[]>&);
16//
17// This constructor shall not participate in overload resolution unless
18// U(*)[] is convertible to T(*)[].
19
20#include <memory>
21#include <cassert>
22
23int main()
24{
25 std::default_delete<int[]> d1;
Marshall Clow17a80bc2016-02-25 15:27:13 +000026 std::default_delete<const int[]> d2 = d1;
Marshall Clow5425ba02016-02-25 15:25:29 +000027}