summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/StringMapTest.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-21 21:23:57 +0000
committerZachary Turner <zturner@google.com>2017-03-21 21:23:57 +0000
commit61bb2328eb66bdf7bc6a482be530aea3d9cbadfe (patch)
treeb47e4cd8a2be97c95ccb01ea213efa38723e6ce4 /llvm/unittests/ADT/StringMapTest.cpp
parentdd4b9d6d7b0cf4942cd38f9996ef4ca0454467f6 (diff)
downloadbcm5719-llvm-61bb2328eb66bdf7bc6a482be530aea3d9cbadfe.tar.gz
bcm5719-llvm-61bb2328eb66bdf7bc6a482be530aea3d9cbadfe.zip
Revert "Improve StringMap iterator support."
This is causing crashes in clang, so reverting until the problem is figured out. llvm-svn: 298440
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringMapTest.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp
index d2b1c31805e..911c72d7496 100644
--- a/llvm/unittests/ADT/StringMapTest.cpp
+++ b/llvm/unittests/ADT/StringMapTest.cpp
@@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/StringMap.h"
-#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/DataTypes.h"
#include "gtest/gtest.h"
@@ -270,34 +269,6 @@ TEST_F(StringMapTest, InsertRehashingPairTest) {
EXPECT_EQ(42u, It->second);
}
-TEST_F(StringMapTest, IterMapKeys) {
- StringMap<int> Map;
- Map["A"] = 1;
- Map["B"] = 2;
- Map["C"] = 3;
- Map["D"] = 3;
-
- auto Keys = to_vector<4>(Map.keys());
- std::sort(Keys.begin(), Keys.end());
-
- SmallVector<StringRef, 4> Expected = {"A", "B", "C", "D"};
- EXPECT_EQ(Expected, Keys);
-}
-
-TEST_F(StringMapTest, IterSetKeys) {
- StringSet<> Set;
- Set.insert("A");
- Set.insert("B");
- Set.insert("C");
- Set.insert("D");
-
- auto Keys = to_vector<4>(Set.keys());
- std::sort(Keys.begin(), Keys.end());
-
- SmallVector<StringRef, 4> Expected = {"A", "B", "C", "D"};
- EXPECT_EQ(Expected, Keys);
-}
-
// Create a non-default constructable value
struct StringMapTestStruct {
StringMapTestStruct(int i) : i(i) {}
OpenPOWER on IntegriCloud