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