diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp')
| -rw-r--r-- | gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp b/gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp index 8d5fa406091..cc14ccc1e54 100644 --- a/gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp +++ b/gnu/llvm/unittests/ADT/TinyPtrVectorTest.cpp @@ -152,6 +152,12 @@ TYPED_TEST(TinyPtrVectorTest, CopyAndMoveCtorTest) { TypeParam Move(std::move(Copy2)); this->expectValues(Move, this->testArray(42)); this->expectValues(Copy2, this->testArray(0)); + + TypeParam MultipleElements(this->testArray(2)); + TypeParam SingleElement(this->testArray(1)); + MultipleElements = std::move(SingleElement); + this->expectValues(MultipleElements, this->testArray(1)); + this->expectValues(SingleElement, this->testArray(0)); } TYPED_TEST(TinyPtrVectorTest, CopyAndMoveTest) { |
