mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-15 17:05:25 +02:00
Add dll_test (to check for visibility issues)
This commit is contained in:
20
test/dll_test_main.cpp
Normal file
20
test/dll_test_main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright 2018 Peter Dimov
|
||||
//
|
||||
// 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
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
boost::shared_ptr<int> dll_test();
|
||||
|
||||
int main()
|
||||
{
|
||||
boost::shared_ptr<int> p1 = dll_test();
|
||||
|
||||
BOOST_TEST_EQ( *p1, 42 );
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
Reference in New Issue
Block a user