diff options
Diffstat (limited to 'test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array3.fail.cpp')
-rw-r--r-- | test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array3.fail.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array3.fail.cpp b/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array3.fail.cpp new file mode 100644 index 000000000000..cfdc2e1d886b --- /dev/null +++ b/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array3.fail.cpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +#include <memory> +#include <string> +#include <cassert> + +int main() +{ + auto up3 = std::make_unique<int[5]>(); // this is deleted +} |