mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 23:26:31 +00:00
Fix const ilist_node::get{Prev,Next}Node() to actually compile. Picky, picky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,6 +34,11 @@ TEST(ilistTest, Basic) {
|
||||
EXPECT_EQ(2, List.back().Value);
|
||||
EXPECT_EQ(2, List.front().getNextNode()->Value);
|
||||
EXPECT_EQ(1, List.back().getPrevNode()->Value);
|
||||
|
||||
const ilist<Node> &ConstList = List;
|
||||
EXPECT_EQ(2, ConstList.back().Value);
|
||||
EXPECT_EQ(2, ConstList.front().getNextNode()->Value);
|
||||
EXPECT_EQ(1, ConstList.back().getPrevNode()->Value);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user