OSDN Git Service

[C++11] Add unit tests for OwningPtr<T> in preparation for changes to make
authorChandler Carruth <chandlerc@gmail.com>
Sun, 2 Mar 2014 03:26:39 +0000 (03:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 2 Mar 2014 03:26:39 +0000 (03:26 +0000)
commitfd18fcb111a2ace105b1fbc23ef45fb08ea98ff0
treeb18864004349568d9d0ad1275923c52cc590742a
parent18510b7e431b5e8050f546edea904dcb43f46a48
[C++11] Add unit tests for OwningPtr<T> in preparation for changes to make
it interoperate (minimally) with std::unique_ptr<T>. This is part of my
plan to migrate LLVM to use std::unique_ptr with a minimal impact on
out-of-tree code.

Patch by Ahmed Charles with some minor cleanups (and bool casts) by me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202608 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ADT/CMakeLists.txt
unittests/ADT/OwningPtrTest.cpp [new file with mode: 0644]