[Xtensa] Implement Windowed Register Option. (#124656)
[llvm-project.git] / libcxx / test / std / utilities / memory / unique.ptr / unique.ptr.special / io.verify.cpp
blob12c9f2018083f34b22f5db3c28e14ef4c9b9296c
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // Because we don't have a functioning decltype in C++03
10 // UNSUPPORTED: c++03
12 // UNSUPPORTED: no-localization
14 // <memory>
16 // unique_ptr
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);
22 // -?- Remarks: This function shall not participate in overload resolution unless os << p.get() is a valid expression.
24 #include <memory>
25 #include <sstream>
26 #include <cassert>
28 #include "min_allocator.h"
29 #include "deleter_types.h"
31 int main(int, char**)
33 std::unique_ptr<int, PointerDeleter<int>> p;
34 std::ostringstream os;
35 os << p; // expected-error {{invalid operands to binary expression}}
37 return 0;