Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // PR c++/86981 | |
2 // { dg-do compile { target c++11 } } | |
3 // { dg-options "-Wpessimizing-move" } | |
4 | |
5 #include <string> | |
6 #include <tuple> | |
7 #include <utility> | |
8 | |
9 std::tuple<std::string, std::string> | |
10 foo () | |
11 { | |
12 std::pair<std::string, std::string> p; | |
13 return std::move (p); | |
14 } |