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 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
13 // template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>>
14 // class basic_istringstream
16 // void str(basic_string<charT, traits, Allocator>&& s);
21 #include "make_string.h"
22 #include "test_macros.h"
24 #define STR(S) MAKE_STRING(CharT, S)
26 template <class CharT
>
29 std::basic_istringstream
<CharT
> ss
;
30 std::basic_string
<CharT
> s(STR("testing"));
32 assert(ss
.str() == STR("testing"));
36 int main(int, char**) {
38 #ifndef TEST_HAS_NO_WIDE_CHARACTERS