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

source code of libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/ctor.default.pass.cpp