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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 // UNSUPPORTED: no-filesystem
11 // REQUIRES: libcpp-has-no-incomplete-ranges
12 
13 // Test that _LIBCPP_HAS_NO_INCOMPLETE_RANGES disables the std::ranges namespace.
14 
15 #include <algorithm>
16 #include <concepts>
17 #include <filesystem>
18 #include <iterator>
19 #include <memory>
20 #include <numeric>
21 #include <ranges>
22 #include <span>
23 #include <string_view>
24 #include <utility>
25 
26 _LIBCPP_BEGIN_NAMESPACE_STD
27 namespace ranges {
28   int data;
29   int size;
30   int prev;
31   int next;
32   int distance;
33   int take_view;
34   int drop_view;
35   int transform_view;
36   int filter_view;
37   int join_view;
38   int views; // this entire namespace should be absent
39 } // namespace ranges
40 _LIBCPP_END_NAMESPACE_STD
41