1 /* 2 Copyright (c) 2020-2021 Intel Corporation 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 #include "common/test.h" 18 19 #include <tbb/version.h> 20 21 //! \file test_implicit_linkage_on_windows.cpp 22 //! \brief Test for [internal] functionality 23 24 //! Testing the library is implicitly linked on Windows platforms 25 //! \brief \ref error_guessing \ref interface 26 TEST_CASE("Test implicit linkage") { 27 // Pulling something from the library so that it is indeed required during the linkage 28 REQUIRE_MESSAGE( 29 TBB_runtime_interface_version()==TBB_INTERFACE_VERSION, 30 "Running with the library of different version than the test was compiled against." 31 ); 32 } 33