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 // constexpr outer-iterator(Parent& parent, iterator_t<Base> current);
13 //   requires forward_range<Base>
14 
15 #include <ranges>
16 
17 #include <type_traits>
18 #include <utility>
19 #include "../types.h"
20 
21 static_assert(!std::ranges::forward_range<SplitViewInput>);
22 static_assert(!std::is_constructible_v<OuterIterInput, SplitViewInput&, std::ranges::iterator_t<InputView>>);
23 
test()24 constexpr bool test() {
25   ForwardView input("abc");
26   SplitViewForward v(std::move(input), " ");
27   [[maybe_unused]] OuterIterForward i(v, input.begin());
28 
29   return true;
30 }
31 
main(int,char **)32 int main(int, char**) {
33   test();
34   static_assert(test());
35 
36   return 0;
37 }
38