1*9021f368SArthur O'Dwyer //===----------------------------------------------------------------------===// 2*9021f368SArthur O'Dwyer // 3*9021f368SArthur O'Dwyer // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*9021f368SArthur O'Dwyer // See https://llvm.org/LICENSE.txt for license information. 5*9021f368SArthur O'Dwyer // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*9021f368SArthur O'Dwyer // 7*9021f368SArthur O'Dwyer //===----------------------------------------------------------------------===// 8*9021f368SArthur O'Dwyer 9*9021f368SArthur O'Dwyer // UNSUPPORTED: c++03, c++11, c++14, c++17 10*9021f368SArthur O'Dwyer // UNSUPPORTED: libcpp-has-no-incomplete-ranges 11*9021f368SArthur O'Dwyer 12*9021f368SArthur O'Dwyer // single_view does not specialize enable_borrowed_range 13*9021f368SArthur O'Dwyer 14*9021f368SArthur O'Dwyer #include <ranges> 15*9021f368SArthur O'Dwyer 16*9021f368SArthur O'Dwyer #include "test_range.h" 17*9021f368SArthur O'Dwyer 18*9021f368SArthur O'Dwyer static_assert(!std::ranges::borrowed_range<std::ranges::single_view<int>>); 19*9021f368SArthur O'Dwyer static_assert(!std::ranges::borrowed_range<std::ranges::single_view<int*>>); 20*9021f368SArthur O'Dwyer static_assert(!std::ranges::borrowed_range<std::ranges::single_view<BorrowedView>>); 21*9021f368SArthur O'Dwyer static_assert(!std::ranges::borrowed_range<std::ranges::single_view<NonBorrowedView>>); 22