From 2deab4c35c067f0f6192f45b549f0ccbbec22189 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 28 Oct 2022 06:19:17 +0300 Subject: [PATCH] Add pedantic_bases_test --- test/Jamfile | 2 ++ test/pedantic_bases_test.cpp | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/pedantic_bases_test.cpp diff --git a/test/Jamfile b/test/Jamfile index 71199ca..40b4f8a 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -73,6 +73,8 @@ run union_test2.cpp ; run pedantic_enumerators_test.cpp : : : pedantic ; +run pedantic_bases_test.cpp + : : : pedantic ; # examples diff --git a/test/pedantic_bases_test.cpp b/test/pedantic_bases_test.cpp new file mode 100644 index 0000000..ea00595 --- /dev/null +++ b/test/pedantic_bases_test.cpp @@ -0,0 +1,19 @@ +// Copyright 2022 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// https://www.boost.org/LICENSE_1_0.txt + +#include +#include + +struct X {}; + +int main() +{ +#if defined(BOOST_DESCRIBE_CXX11) + + BOOST_TEST_TRAIT_FALSE((boost::describe::has_describe_bases)); + +#endif + + return boost::report_errors(); +}