From 977544feda129535e84c05e91c1576e7fd86f72d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 8 Apr 2020 21:25:36 +0300 Subject: [PATCH] Add sp_warning_test --- test/Jamfile | 2 ++ test/sp_warning_test.cpp | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/sp_warning_test.cpp diff --git a/test/Jamfile b/test/Jamfile index c62fd0b..6078da9 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -359,3 +359,5 @@ run wp_guides_test.cpp ; compile-fail shared_from_fail.cpp ; compile-fail weak_from_fail.cpp ; + +compile sp_warning_test.cpp ; diff --git a/test/sp_warning_test.cpp b/test/sp_warning_test.cpp new file mode 100644 index 0000000..26aa78d --- /dev/null +++ b/test/sp_warning_test.cpp @@ -0,0 +1,13 @@ +// Copyright 2020 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// https://www.boost.org/LICENSE_1_0.txt + +#if defined(__GNUC__) && __GNUC__ >= 5 +# pragma GCC diagnostic error "-Wsuggest-override" +#endif + +#include + +int main() +{ +}