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 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 
11 // template<class In, class Out>
12 // concept indirectly_copyable_storable;
13 
14 #include <iterator>
15 
16 template<class I, class O>
17   requires std::indirectly_copyable<I, O>
indirectly_copyable_storable_subsumption()18 constexpr bool indirectly_copyable_storable_subsumption() {
19   return false;
20 }
21 
22 template<class I, class O>
23   requires std::indirectly_copyable_storable<I, O>
indirectly_copyable_storable_subsumption()24 constexpr bool indirectly_copyable_storable_subsumption() {
25   return true;
26 }
27 
28 static_assert(indirectly_copyable_storable_subsumption<int*, int*>());
29