PR59170 make pretty printers check for singular iterators
commitec3e3110dea7ec8fcfc97b971fdd5382891296ee
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2016 14:13:36 +0000 (15 14:13 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2016 14:13:36 +0000 (15 14:13 +0000)
treee0c4334f0da476def753f05ddcaa1936ba9c0289
parente580cddc64c300d76ef2f23a02ce6a7a0f19554f
PR59170 make pretty printers check for singular iterators

PR libstdc++/59170
* python/libstdcxx/v6/printers.py (StdListIteratorPrinter.to_string)
(StdSlistIteratorPrinter.to_string, StdVectorIteratorPrinter.to_string)
(StdRbtreeIteratorPrinter.to_string)
(StdDequeIteratorPrinter.to_string): Add check for value-initialized
iterators.
* testsuite/libstdc++-prettyprinters/simple.cc: Test them.
* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243692 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc