c++: Add new std::move test [PR67906]
commit177e93e95272e9b373203dee5b28d2b284ffa05e
authorMarek Polacek <polacek@redhat.com>
Wed, 17 Aug 2022 19:43:45 +0000 (17 15:43 -0400)
committerMarek Polacek <polacek@redhat.com>
Wed, 17 Aug 2022 19:45:14 +0000 (17 15:45 -0400)
tree07df8a5fa395e92bc46cceffbd986d960e8990ba
parent5adfb6540db95da5faf1f77fbe9ec38b4cf8eb1f
c++: Add new std::move test [PR67906]

As discussed in 67906, let's make sure we don't warn about a std::move
when initializing when there's a T(const T&&) ctor.

PR c++/67906

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/Wredundant-move11.C: New test.
gcc/testsuite/g++.dg/cpp0x/Wredundant-move11.C [new file with mode: 0644]