brintos

brintos / llvm-project-archived public Read only

0
0
Text · 908 B · 5a11275 Raw
45 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::outer-iterator()12 13#include <ranges>14 15#include "../types.h"16 17constexpr bool test() {18  // `View` is a forward range.19  {20    [[maybe_unused]] OuterIterForward i;21  }22 23  {24    [[maybe_unused]] OuterIterForward i = {};25  }26 27  // `View` is an input range.28  {29    [[maybe_unused]] OuterIterInput i;30  }31 32  {33    [[maybe_unused]] OuterIterInput i = {};34  }35 36  return true;37}38 39int main(int, char**) {40  test();41  static_assert(test());42 43  return 0;44}45