PR59170 make pretty printers check for singular iterators
authorJonathan Wakely <jwakely@redhat.com>
Thu, 15 Dec 2016 14:13:36 +0000 (14:13 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 15 Dec 2016 14:13:36 +0000 (14:13 +0000)
commitbdfc9f5c544ba44e0a5b892c3a5976d139261158
treee0c4334f0da476def753f05ddcaa1936ba9c0289
parentfec5ce248546144be3bec8655fd72c091c813594
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.

From-SVN: r243692
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc