diff options
Diffstat (limited to 'test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array1.fail.cpp')
-rw-r--r-- | test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array1.fail.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array1.fail.cpp b/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array1.fail.cpp new file mode 100644 index 0000000000000..00987919413bb --- /dev/null +++ b/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique.array1.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 up1 = std::make_unique<std::string[]>("error"); // doesn't compile - no bound +} |