aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2009-11-13 02:18:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2009-11-13 02:18:25 +0000
commitc78c0c99a0fe1703ae72fc51e440aaa8e4e19e91 (patch)
tree0a822d49c72aa91f86d0961e50807a81e156bd0e /unittests
parent1e608819aa26c06b1552521469f2211339e3bfe0 (diff)
Switch to smallvector. Also fix issue with using unsigend for MaxSplit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/StringRefTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp
index 3c0cc58ad2..ea1d26cb60 100644
--- a/unittests/ADT/StringRefTest.cpp
+++ b/unittests/ADT/StringRefTest.cpp
@@ -9,6 +9,7 @@
#include "gtest/gtest.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -111,8 +112,8 @@ TEST(StringRefTest, Split) {
}
TEST(StringRefTest, Split2) {
- std::vector<StringRef> parts;
- std::vector<StringRef> expected;
+ SmallVector<StringRef, 5> parts;
+ SmallVector<StringRef, 5> expected;
expected.push_back("ab"); expected.push_back("c");
StringRef(",ab,,c,").split(parts, ",", -1, false);