43 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++14, c++1710 11// std::ranges::lazy_split_view::outer-iterator::value_type::value_type()12 13#include <ranges>14 15#include "../types.h"16 17constexpr 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 37int main(int, char**) {38 test();39 static_assert(test());40 41 return 0;42}43