From 427f68c6c2b14b3865f62bb3aaaa75174d574441 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 27 Jul 2016 18:32:45 +0100 Subject: [PATCH] * testsuite/20_util/forward/1_neg.cc: Move dg-error to right line. From-SVN: r238793 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/20_util/forward/1_neg.cc | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 37f6e32bf07..d164f50a2c8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2016-07-27 Jonathan Wakely + + * testsuite/20_util/forward/1_neg.cc: Move dg-error to right line. + 2016-07-25 Georeth Chow * include/ext/ropeimpl.h (rope<>::_S_dump(_RopeRep*, int)): Qualify diff --git a/libstdc++-v3/testsuite/20_util/forward/1_neg.cc b/libstdc++-v3/testsuite/20_util/forward/1_neg.cc index d2f3477b80a..97851f2df67 100644 --- a/libstdc++-v3/testsuite/20_util/forward/1_neg.cc +++ b/libstdc++-v3/testsuite/20_util/forward/1_neg.cc @@ -27,8 +27,9 @@ template std::shared_ptr factory(A1&& a1, A2&& a2) { - return std::shared_ptr(new T(std::forward(a1), - std::forward(a2))); // { dg-error "rvalue" } + return std::shared_ptr( + new T(std::forward(a1), // { dg-error "rvalue" } + std::forward(a2))); } struct A -- 2.30.2