mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[C++11] Replace llvm::next and llvm::prior with std::next and std::prev.
Remove the old functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -51,15 +51,15 @@ TEST(ilistTest, SpliceOne) {
|
||||
List.splice(List.begin(), List, List.begin());
|
||||
EXPECT_EQ(1u, List.size());
|
||||
EXPECT_EQ(1, List.front().Value);
|
||||
EXPECT_TRUE(llvm::next(List.begin()) == List.end());
|
||||
EXPECT_TRUE(std::next(List.begin()) == List.end());
|
||||
|
||||
// Altenative noop. Move the first element behind itself.
|
||||
List.push_back(2);
|
||||
List.push_back(3);
|
||||
List.splice(llvm::next(List.begin()), List, List.begin());
|
||||
List.splice(std::next(List.begin()), List, List.begin());
|
||||
EXPECT_EQ(3u, List.size());
|
||||
EXPECT_EQ(1, List.front().Value);
|
||||
EXPECT_EQ(2, llvm::next(List.begin())->Value);
|
||||
EXPECT_EQ(2, std::next(List.begin())->Value);
|
||||
EXPECT_EQ(3, List.back().Value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user