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 // std::ranges::lazy_split_view::outer-iterator::outer-iterator() 13 14 #include <ranges> 15 16 #include "../types.h" 17 18 constexpr bool test() { 19 // `View` is a forward range. 20 { 21 [[maybe_unused]] OuterIterForward i; 22 } 23 24 { 25 [[maybe_unused]] OuterIterForward i = {}; 26 } 27 28 // `View` is an input range. 29 { 30 [[maybe_unused]] OuterIterInput i; 31 } 32 33 { 34 [[maybe_unused]] OuterIterInput i = {}; 35 } 36 37 return true; 38 } 39 40 int main(int, char**) { 41 test(); 42 static_assert(test()); 43 44 return 0; 45 } 46