Add the critically missing 'clone' method. =]
authorChandler Carruth <chandlerc@gmail.com>
Sat, 9 Nov 2013 04:32:34 +0000 (04:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 9 Nov 2013 04:32:34 +0000 (04:32 +0000)
commitca020d469e2a04f6805667c49a6b36f90a1856d2
treeead48702fb0e6c3655a5cdd5a99806b1cff83a77
parentcd7a191d8aaf4869b0c53ddb04acba924424f2c8
Add the critically missing 'clone' method. =]

Clang managed to never instantiate the copy constructor. Added tests to
ensure this path is tested.

We could still use tests for the polymorphic nature. Those coming up
next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194317 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ADT/polymorphic_ptr_test.cpp