diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-02-25 15:25:29 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-02-25 15:25:29 +0000 |
commit | 6433044dc97294cc0d267886cda8a538d9aeecee (patch) | |
tree | 8e14dd3e97b18702899aeba3ec513156d3077eba | |
parent | b9baae529f410608cf7581482f8bcd7a3d058252 (diff) | |
download | bcm5719-llvm-6433044dc97294cc0d267886cda8a538d9aeecee.tar.gz bcm5719-llvm-6433044dc97294cc0d267886cda8a538d9aeecee.zip |
Add test to ensure that the converting constructor in N4089 is present and working
llvm-svn: 261874
-rw-r--r-- | libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp b/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp new file mode 100644 index 00000000000..c00e98f6457 --- /dev/null +++ b/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp @@ -0,0 +1,27 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <memory> + +// default_delete[] + +// template <class U> +// default_delete(const default_delete<U[]>&); +// +// This constructor shall not participate in overload resolution unless +// U(*)[] is convertible to T(*)[]. + +#include <memory> +#include <cassert> + +int main() +{ + std::default_delete<int[]> d1; + std::default_delete<const int[]> d2; +} |