]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix tests for std::variant to match original intention
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2019 19:27:19 +0000 (19:27 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2019 19:27:19 +0000 (19:27 +0000)
commitc4495ab1e9155b2586eb4c34a4a23ef2373950a6
treeacc7b47fe11a6e27934c8299fc53839156946ff1
parent4f13ba2f19ad27268764182efdbd0ac1b76e47dc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270423 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/variant/compile.cc