1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
13 // UNSUPPORTED: c++03, c++11
14 // XFAIL: no-wide-characters
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}}
26 ss
>> std::quoted(s
); // expected-error {{invalid operands to binary expression}}