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:
Daniel Dunbar
2010-05-13 18:35:02 +00:00
parent 18e05b4692
commit f1fd2288f3
2 changed files with 7 additions and 2 deletions

View File

@@ -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);
}
}