blob: b6be285a11de11780d79e275ffb160f67095c1e4 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_header_inclusion_tests.py
// and should not be edited manually.
//
// clang-format off
// UNSUPPORTED: c++03, c++11, c++14, c++17
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
// <ranges>
// Test that <ranges> includes all the other headers it's supposed to.
#include <ranges>
#include "test_macros.h"
#if !defined(_LIBCPP_RANGES)
# error "<ranges> was expected to define _LIBCPP_RANGES"
#endif
#if TEST_STD_VER > 17 && !defined(_LIBCPP_COMPARE)
# error "<ranges> should include <compare> in C++20 and later"
#endif
#if TEST_STD_VER > 03 && !defined(_LIBCPP_INITIALIZER_LIST)
# error "<ranges> should include <initializer_list> in C++20 and later"
#endif
#if !defined(_LIBCPP_ITERATOR)
# error "<ranges> should include <iterator> in C++20 and later"
#endif