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
19 // Test that mismatches in the traits between the quoted object and the dest string are diagnosed.
21 template <class charT
>
23 typedef charT char_type
;
26 void round_trip ( const char *p
) {
29 std::basic_string
<char, test_traits
<char>> s
;
30 ss
>> std::quoted(s
); // expected-error {{invalid operands to binary expression}}