diff options
Diffstat (limited to 'libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp')
| -rw-r--r-- | libcxx/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp | 12 |
1 files changed, 12 insertions, 0 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 9f2d7c8ecce..2fa50964555 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,6 +18,16 @@ #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; } @@ -140,6 +150,8 @@ std::wstring unquote ( const wchar_t *p, wchar_t delim='"', wchar_t escape='\\' int main() { + both_ways ( "" ); // This is a compilation check + round_trip ( "" ); round_trip_ws ( "" ); round_trip_d ( "", 'q' ); |

