Add sp_warning_test

This commit is contained in:
Peter Dimov
2020-04-08 21:25:36 +03:00
parent 54b5498208
commit 977544feda
2 changed files with 15 additions and 0 deletions

View File

@ -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 ;

13
test/sp_warning_test.cpp Normal file
View File

@ -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 <boost/smart_ptr.hpp>
int main()
{
}