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 // UNSUPPORTED: libcpp-no-concepts
11 
12 // template<class In, class Out>
13 // concept indirectly_movable;
14 
15 #include <iterator>
16 
17 #include <concepts>
18 
19 template<std::indirectly_readable I, class O>
20 constexpr bool indirectly_movable_subsumption() {
21   return false;
22 }
23 
24 template<class I, class O>
25   requires std::indirectly_movable<I, O>
26 constexpr bool indirectly_movable_subsumption() {
27   return true;
28 }
29 
30 static_assert(indirectly_movable_subsumption<int*, int*>());
31