[libcxx] r195143 - Fix a test that I broke over the weekend

Marshall Clow mclow.lists at gmail.com
Tue Nov 19 11:14:27 PST 2013


Author: marshall
Date: Tue Nov 19 13:14:27 2013
New Revision: 195143

URL: http://llvm.org/viewvc/llvm-project?rev=195143&view=rev
Log:
Fix a test that I broke over the weekend

Modified:
    libcxx/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp

Modified: libcxx/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp?rev=195143&r1=195142&r2=195143&view=diff
==============================================================================
--- libcxx/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp (original)
+++ libcxx/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp Tue Nov 19 13:14:27 2013
@@ -18,16 +18,6 @@
 
 #if _LIBCPP_STD_VER > 11
 
-void both_ways ( const char *p ) {
-	std::string str(p);
-	auto q = std::quoted(s);
-
-    std::stringstream ss;
-    bool skippingws = is_skipws ( &ss );
-	ss << q;
-	ss >> q;
-    }
-
 bool is_skipws ( const std::istream *is ) {
     return ( is->flags() & std::ios_base::skipws ) != 0;
     }
@@ -37,6 +27,16 @@ bool is_skipws ( const std::wistream *is
     return ( is->flags() & std::ios_base::skipws ) != 0;
     }
 
+void both_ways ( const char *p ) {
+	std::string str(p);
+	auto q = std::quoted(str);
+
+    std::stringstream ss;
+    bool skippingws = is_skipws ( &ss );
+	ss << q;
+	ss >> q;
+    }
+
 void round_trip ( const char *p ) {
     std::stringstream ss;
     bool skippingws = is_skipws ( &ss );





More information about the cfe-commits mailing list