* testsuite/20_util/forward/1_neg.cc: Move dg-error to right line.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Jul 2016 17:32:45 +0000 (18:32 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 27 Jul 2016 17:32:45 +0000 (18:32 +0100)
From-SVN: r238793

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/forward/1_neg.cc

index 37f6e32bf075c7f5c59ec3c4c1a80e801c5f242c..d164f50a2c8766515b2cc7bddfd4ad3d343db597 100644 (file)
@@ -1,3 +1,7 @@
+2016-07-27  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/20_util/forward/1_neg.cc: Move dg-error to right line.
+
 2016-07-25  Georeth Chow  <georeth2010@gmail.com>
 
        * include/ext/ropeimpl.h (rope<>::_S_dump(_RopeRep*, int)): Qualify
index d2f3477b80ae8708d84df86481b1f3f8ea31d15d..97851f2df67400c3a4462e19671e3cc7324e491e 100644 (file)
@@ -27,8 +27,9 @@ template<class T, class A1, class A2>
   std::shared_ptr<T>
   factory(A1&& a1, A2&& a2)
   {
-    return std::shared_ptr<T>(new T(std::forward<A1>(a1),
-                                   std::forward<A2>(a2))); // { dg-error "rvalue" }
+    return std::shared_ptr<T>(
+       new T(std::forward<A1>(a1), // { dg-error "rvalue" }
+              std::forward<A2>(a2)));
   }
 
 struct A