2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-22 05:02:15 +00:00
Files
compute/test/test_multiple_objects1.cpp
Denis Demidov 41d2052c2a Fix linkage problem with detail::getenv()
detail::getenv() function was not declared inline, which led to
`multiple definition` errors at link time when a program consisted of
multiple objects that included Boost.Compute headers.

Fixed the problem and added core.multiple_objects test.
2014-01-07 21:29:18 +04:00

22 lines
698 B
C++

//---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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://kylelutz.github.com/compute for more information.
//---------------------------------------------------------------------------//
#define BOOST_TEST_MODULE TestMultipleObjects
#include <boost/test/unit_test.hpp>
#include <boost/compute.hpp>
bool dummy_function();
BOOST_AUTO_TEST_CASE(multiple_objects)
{
// It is enough if the test compiles.
BOOST_CHECK( dummy_function() );
}