151c0b2f7Stbbdev /* 2*500abe33SAlex Copyright (c) 2020-2022 Intel Corporation 351c0b2f7Stbbdev 451c0b2f7Stbbdev Licensed under the Apache License, Version 2.0 (the "License"); 551c0b2f7Stbbdev you may not use this file except in compliance with the License. 651c0b2f7Stbbdev You may obtain a copy of the License at 751c0b2f7Stbbdev 851c0b2f7Stbbdev http://www.apache.org/licenses/LICENSE-2.0 951c0b2f7Stbbdev 1051c0b2f7Stbbdev Unless required by applicable law or agreed to in writing, software 1151c0b2f7Stbbdev distributed under the License is distributed on an "AS IS" BASIS, 1251c0b2f7Stbbdev WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1351c0b2f7Stbbdev See the License for the specific language governing permissions and 1451c0b2f7Stbbdev limitations under the License. 1551c0b2f7Stbbdev */ 1651c0b2f7Stbbdev 1751c0b2f7Stbbdev //! \file test_tbb_header_secondary.cpp 1851c0b2f7Stbbdev //! \brief Test for [all] specification 1951c0b2f7Stbbdev 20b15aabb3Stbbdev #if __INTEL_COMPILER && _MSC_VER 21b15aabb3Stbbdev #pragma warning(disable : 2586) // decorated name length exceeded, name was truncated 22b15aabb3Stbbdev #endif 23b15aabb3Stbbdev 2455f9b178SIvan Kochin #ifndef NOMINMAX 2555f9b178SIvan Kochin #define NOMINMAX 2655f9b178SIvan Kochin #endif // NOMINMAX 2755f9b178SIvan Kochin 28*500abe33SAlex #if _MSC_VER && TBB_USE_DEBUG 29*500abe33SAlex // Check that there is no conflict with _CRTDBG_MAP_ALLOC 30*500abe33SAlex #define _CRTDBG_MAP_ALLOC 31*500abe33SAlex #include "crtdbg.h" 32*500abe33SAlex #endif 33*500abe33SAlex 3451c0b2f7Stbbdev #include <exception> 3551c0b2f7Stbbdev 3651c0b2f7Stbbdev #define CHECK(x) do { if (!(x)) { std::terminate(); } } while (false) 3751c0b2f7Stbbdev #define CHECK_MESSAGE(x, y) CHECK(x); 3851c0b2f7Stbbdev 3951c0b2f7Stbbdev #define __TBB_TEST_SECONDARY 1 4051c0b2f7Stbbdev #include "test_tbb_header.cpp" 41