brintos

brintos / llvm-project-archived public Read only

0
0
Text · 730 B · 42fcc73 Raw
32 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// sentinel() = default;12 13#include <cassert>14#include <ranges>15 16#include "test_macros.h"17#include "../types.h"18 19constexpr bool test() {20  std::ranges::sentinel_t<std::ranges::join_view<CopyableParent>> sent;21  (void) sent;22 23  return true;24}25 26int main(int, char**) {27  test();28  static_assert(test());29 30  return 0;31}32