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