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