Fix tests for std::variant to match original intention
commit9d3e662d294a2861a1c8fb9825edd11013d621c1
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Apr 2019 19:27:19 +0000 (17 20:27 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 17 Apr 2019 19:27:19 +0000 (17 20:27 +0100)
treeacc7b47fe11a6e27934c8299fc53839156946ff1
parent747742f6f3c80d04109b55ad1e90a77eac3ffd88
Fix tests for std::variant to match original intention

* testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
actually match its name.
(MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
(test_swap()): Fix result for MoveCtorOnly and check
MoveCtorAndSwapOnly.

From-SVN: r270423
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/variant/compile.cc