diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2013-11-19 19:14:27 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2013-11-19 19:14:27 +0000 |
| commit | eed0bdee598d6a38fa600bdffef2dcc199046941 (patch) | |
| tree | 9cac83a0b21b71eb0a25a03f51f6dcd409779391 /libcxx | |
| parent | e6bf45cdaec2138173eb728e441d8a2f9d49b65d (diff) | |
| download | bcm5719-llvm-eed0bdee598d6a38fa600bdffef2dcc199046941.tar.gz bcm5719-llvm-eed0bdee598d6a38fa600bdffef2dcc199046941.zip | |
Fix a test that I broke over the weekend
llvm-svn: 195143
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp | 20 |
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 ); |

