mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 01:25:32 +00:00
Fix SmallVector's insert to handle non-random-access iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include <stdarg.h>
|
||||
#include <list>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -399,4 +400,9 @@ TEST_F(SmallVectorTest, DirectVectorTest) {
|
||||
EXPECT_EQ(4, theVector[3].getValue());
|
||||
}
|
||||
|
||||
TEST_F(SmallVectorTest, IteratorTest) {
|
||||
std::list<int> L;
|
||||
theVector.insert(theVector.end(), L.begin(), L.end());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user