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