diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index a62a3b6..f345656 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -13,6 +13,7 @@ compile apply_wrap.cpp ; compile arithmetic.cpp ; compile as_sequence.cpp ; compile assert.cpp ; +link assert_vc8_p1.cpp assert_vc8_p2.cpp ; compile at.cpp ; compile back.cpp ; compile bind.cpp ; diff --git a/test/assert_vc8.hpp b/test/assert_vc8.hpp new file mode 100644 index 0000000..f54df0e --- /dev/null +++ b/test/assert_vc8.hpp @@ -0,0 +1,28 @@ + +// Copyright Robin Linden 2018 +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// See http://www.boost.org/libs/mpl for documentation. + +// $Id$ +// $Date$ +// $Revision$ + +// Part of a test to demonstrate a linking error with +// BOOST_MPL_ASSERT_MSG inside of functions under VC++8. + +#include + +template +bool func() +{ + BOOST_MPL_ASSERT_MSG( + true, + ALWAYS_TRUE, + (T)); + + return true; +} diff --git a/test/assert_vc8_p1.cpp b/test/assert_vc8_p1.cpp new file mode 100644 index 0000000..2883135 --- /dev/null +++ b/test/assert_vc8_p1.cpp @@ -0,0 +1,23 @@ + +// Copyright Robin Linden 2018 +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// See http://www.boost.org/libs/mpl for documentation. + +// $Id$ +// $Date$ +// $Revision$ + +// Part of a test to demonstrate a linking error with +// BOOST_MPL_ASSERT_MSG inside of functions under VC++8. + +#include "assert_vc8.hpp" + +static bool a = func(); + +int main() +{ +} diff --git a/test/assert_vc8_p2.cpp b/test/assert_vc8_p2.cpp new file mode 100644 index 0000000..6b53573 --- /dev/null +++ b/test/assert_vc8_p2.cpp @@ -0,0 +1,19 @@ + +// Copyright Robin Linden 2018 +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// See http://www.boost.org/libs/mpl for documentation. + +// $Id$ +// $Date$ +// $Revision$ + +// Part of a test to demonstrate a linking error with +// BOOST_MPL_ASSERT_MSG inside of functions under VC++8. + +#include "assert_vc8.hpp" + +static bool a = func();