Debian Codegraph @

libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer.value/ctor.default.pass.cpp

raw
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::value_type::value_type()
12
13 #include <ranges>
14
15 #include "../types.h"
16
17 constexpr bool test() {
18 {
19 [[maybe_unused]] ValueTypeForward val;
20 }
21
22 {
23 [[maybe_unused]] ValueTypeForward val = {};
24 }
25
26 {
27 [[maybe_unused]] ValueTypeInput val;
28 }
29
30 {
31 [[maybe_unused]] ValueTypeInput val = {};
32 }
33
34 return true;
35 }
36
37 int main(int, char**) {
38 test();
39 static_assert(test());
40
41 return 0;
42 }