1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <iomanip>
11 
12 // quoted
13 
14 #include <iomanip>
15 #include <sstream>
16 #include <string>
17 #include <cassert>
18 
19 #if _LIBCPP_STD_VER > 11
20 
round_trip(const char * p)21 void round_trip ( const char *p ) {
22     std::wstringstream ss;
23     ss << std::quoted(p);
24     std::string s;
25     ss >> std::quoted(s);
26     }
27 
28 
29 
main()30 int main()
31 {
32     round_trip ( "Hi Mom" );
33 }
34 #else
35 #error
36 #endif
37