1//===----------------------------------------------------------------------===// 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; 26 std::default_delete<const int[]> d2 = d1; 27 ((void)d2); 28} 29