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-has-no-incomplete-ranges
11 
12 // template<class T>
13 // concept sized_range;
14 
15 #include <ranges>
16 
17 template <std::ranges::range R>
check_subsumption()18 consteval bool check_subsumption() {
19   return false;
20 }
21 
22 template <std::ranges::sized_range R>
check_subsumption()23 consteval bool check_subsumption() {
24   return true;
25 }
26 
27 static_assert(check_subsumption<int[5]>());
28