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 //===----------------------------------------------------------------------===//
10 // Because we don't have a functioning decltype in C++03
12 // UNSUPPORTED: no-localization
18 // template<class CharT, class Traits, class Y, class D>
19 // basic_ostream<CharT, Traits>&
20 // operator<<(basic_ostream<CharT, Traits>& os, const unique_ptr<Y, D>& p);
26 #include "test_macros.h"
30 std::unique_ptr
<int> p(new int(3));
31 std::ostringstream os
;
32 assert(os
.str().empty());
34 assert(!os
.str().empty());