Pretty printer test fixes and improvements
authorJonathan Wakely <jwakely@redhat.com>
Tue, 8 Jan 2019 23:15:49 +0000 (23:15 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 8 Jan 2019 23:15:49 +0000 (23:15 +0000)
commit416f555930c2eb2fbfb6edb8219cf090d0bd5e74
tree9764ddb234997b1419caac7700530b89d4f862e1
parentd942bc80e4e99f26df39b8c03e8fb03e7c7e91bc
Pretty printer test fixes and improvements

Test that StdUniquePtrPrinter correctly prints std::unique_ptr objects
using the old layout, prior to the PR libstdc++/77990 changes.

The printer test for a valueless std::variant started to fail because
the PR libstdc++/87431 fix meant it no longer became valueless. Change
the test to use a type that is not trivially copyable, so that the
exception causes it to become valueless.

* testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
for old std::unique_ptr layout.
* testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
to become valueless. Add filesystem::path tests.

From-SVN: r267743
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/libstdc++-prettyprinters/compat.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc