brintos

brintos / llvm-project-archived public Read only

0
0
Text · 728 B · 96bfc31 Raw
35 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// constexpr inner-iterator::inner-iterator() = default;12 13#include <ranges>14 15#include "../types.h"16 17constexpr bool test() {18  {19    [[maybe_unused]] InnerIterForward i;20  }21 22  {23    [[maybe_unused]] InnerIterInput i;24  }25 26  return true;27}28 29int main(int, char**) {30  test();31  static_assert(test());32 33  return 0;34}35