1// Copyright (c) 2021 Antony Polukhin
2//
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#include <boost/pfr/core.hpp>
7
8struct A {
9 int zero;
10};
11
12struct B : public A {
13 int one;
14 int two;
15};
16
17int main() {
18 (void)boost::pfr::tuple_size<B>::value; // Must be a compile time error
19}
20
21

source code of boost/libs/pfr/test/core/compile-fail/inherited_nonempty.cpp