Implement n3656 - make_unique. Thanks to Howard for the review and suggestions.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@185352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-07-01 18:16:03 +00:00
parent 7ec46bc422
commit fd7481e96d
7 changed files with 191 additions and 0 deletions

View File

@@ -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
}