Marshall Clow | 5425ba0 | 2016-02-25 15:25:29 +0000 | [diff] [blame] | 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 | |
| 23 | int main() |
| 24 | { |
| 25 | std::default_delete<int[]> d1; |
Marshall Clow | 17a80bc | 2016-02-25 15:27:13 +0000 | [diff] [blame] | 26 | std::default_delete<const int[]> d2 = d1; |
Marshall Clow | 5425ba0 | 2016-02-25 15:25:29 +0000 | [diff] [blame] | 27 | } |