summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp b/libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp
index 2fa50964555..1f6b1267484 100644
--- a/libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp
+++ b/libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp
@@ -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 );
OpenPOWER on IntegriCloud