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: libcpp-no-concepts
11 // UNSUPPORTED: libcpp-has-no-incomplete-ranges
12 
13 // <ranges>
14 
15 // struct view_base { };
16 
17 #include <ranges>
18 #include <type_traits>
19 
20 static_assert(std::is_empty_v<std::ranges::view_base>);
21 static_assert(std::is_trivial_v<std::ranges::view_base>);
22 
23 // Make sure we can inherit from it, as it's intended (that wouldn't be the
24 // case if e.g. it was marked as final).
25 struct View : std::ranges::view_base { };
26