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 //===----------------------------------------------------------------------===//
11 // class ostreambuf_iterator
13 // ostreambuf_iterator<charT,traits>& operator*();
19 #include "test_macros.h"
24 std::ostringstream outf
;
25 std::ostreambuf_iterator
<char> i(outf
);
26 std::ostreambuf_iterator
<char>& iref
= *i
;
29 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
31 std::wostringstream outf
;
32 std::ostreambuf_iterator
<wchar_t> i(outf
);
33 std::ostreambuf_iterator
<wchar_t>& iref
= *i
;