[C++20][modules] Fix std::initializer_list recognition if it's exported out of a...
[llvm-project.git] / libcxx / test / std / iterators / iterator.requirements / alg.req.permutable / permutable.subsumption.compile.pass.cpp
blob82dae0e58cd4ca07abd93c9e4dac0f76c077178c
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 // UNSUPPORTED: c++03, c++11, c++14, c++17
11 // template<class I>
12 // concept permutable = see below; // Since C++20
14 #include <iterator>
16 template<class I> void test_subsumption() requires std::forward_iterator<I>;
17 template<class I> void test_subsumption() requires std::indirectly_movable_storable<I, I>;
18 template<class I> void test_subsumption() requires std::indirectly_swappable<I, I>;
19 template<class I> constexpr bool test_subsumption() requires std::permutable<I> { return true; }
20 static_assert(test_subsumption<int*>());