[LLVM][NVPTX] Add support for griddepcontrol instruction (#123511)
[llvm-project.git] / libcxx / test / std / input.output / iostream.format / quoted.manip / quoted_char.verify.cpp
blob22013cd6f4ed155877fcf593438ce854d1f68c2a
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <iomanip>
11 // quoted
13 // UNSUPPORTED: c++03, c++11
14 // XFAIL: no-wide-characters
16 #include <iomanip>
17 #include <sstream>
18 #include <string>
20 // Test that mismatches between strings and wide streams are diagnosed
22 void round_trip ( const char *p ) {
23 std::wstringstream ss;
24 ss << std::quoted(p); // expected-error {{invalid operands to binary expression}}
25 std::string s;
26 ss >> std::quoted(s); // expected-error {{invalid operands to binary expression}}
29 void f() {
30 round_trip("Hi Mom");