Improve tests for std::vector<bool> printer
authorJonathan Wakely <jwakely@redhat.com>
Thu, 20 Jun 2019 09:04:55 +0000 (10:04 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 20 Jun 2019 09:04:55 +0000 (10:04 +0100)
commit94872d7f99ceb9da9ecb90064d59d4518c9a6f37
tree27f9ae86670fc8c7b0911535e76af91cdd13c923
parentd84ea910c99d0e8d478d0c34bdf722faa298a0b9
Improve tests for std::vector<bool> printer

The current tests wouldn't notice if the vector<bool> contents were
printed in reverse, because it would read the same forwards and
backwards. Change the content so the tests would fail if that happened.

* testsuite/libstdc++-prettyprinters/simple.cc: Use non-palindromic
vector<bool> for test.
* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.

From-SVN: r272499
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc