From 58e9f8a2fc0b576f915cb64a792ea6d37700421b Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Wed, 8 Aug 2018 00:49:02 +0000 Subject: [PATCH] [libcxx] [test] Allow a standard library that implements LWG 1203 in istream.rvalue/rvalue.pass.cpp (Still pending review at https://reviews.llvm.org/D47400 which has been open since may; will ask for forgiveness rather than permission :) ) llvm-svn: 339214 --- .../input.streams/istream.rvalue/rvalue.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp b/libcxx/test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp index 77c41b09ad7b..230a59a88ae5 100644 --- a/libcxx/test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp @@ -65,7 +65,7 @@ int main() { // test perfect forwarding assert(called == false); std::istringstream ss; - auto& out = (std::move(ss) >> A{}); + auto&& out = (std::move(ss) >> A{}); assert(&out == &ss); assert(called); }