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