diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-05 17:19:35 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-05 17:19:35 +0000 |
commit | 648f8fc59b2cc39abd24f4c22388b346cdebcc31 (patch) | |
tree | 3a07eccc4c22b265261edd75c9ec3910d9c626f5 /libstdc++-v3/testsuite/20_util/pair/astuple/get.cc | |
parent | 7bef5b82e4109778a0988d20e19e1ed29dadd835 (diff) | |
parent | 8c089b5c15a7b35644750ca393f1e66071ad9aa9 (diff) | |
download | gcc-648f8fc59b2cc39abd24f4c22388b346cdebcc31.tar.gz |
Merge trunk into sve
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/pair/astuple/get.cc')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/pair/astuple/get.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/20_util/pair/astuple/get.cc b/libstdc++-v3/testsuite/20_util/pair/astuple/get.cc index 80939741f6c..e81af3b2f33 100644 --- a/libstdc++-v3/testsuite/20_util/pair/astuple/get.cc +++ b/libstdc++-v3/testsuite/20_util/pair/astuple/get.cc @@ -27,4 +27,9 @@ void test01() float&& pfirst __attribute__((unused)) = std::get<0>(std::move(p)); int&& psecond __attribute__((unused)) = std::get<1>(std::move(p)); + + const std::pair<float, int> cp; + + const float&& cpfirst __attribute__((unused)) = std::get<0>(std::move(cp)); + const int&& cpsecond __attribute__((unused)) = std::get<1>(std::move(cp)); } |