diff --git a/test/Jamfile b/test/Jamfile index 0d31010..a3e2b4e 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -361,3 +361,4 @@ compile-fail shared_from_fail.cpp ; compile-fail weak_from_fail.cpp ; compile sp_override_test.cpp ; +compile sp_pedantic_test.cpp : pedantic on ; diff --git a/test/sp_pedantic_test.cpp b/test/sp_pedantic_test.cpp new file mode 100644 index 0000000..92df9c3 --- /dev/null +++ b/test/sp_pedantic_test.cpp @@ -0,0 +1,14 @@ +// Copyright 2020 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// https://www.boost.org/LICENSE_1_0.txt + +#include + +int main() +{ + boost::shared_ptr p1( new int ); + boost::shared_ptr p2( new int[1] ); + + boost::make_shared(); + boost::make_shared( 1 ); +}