1 /*
2     Copyright (c) 2020-2022 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 //! \file test_tbb_header_secondary.cpp
18 //! \brief Test for [all] specification
19 
20 #if __INTEL_COMPILER && _MSC_VER
21 #pragma warning(disable : 2586) // decorated name length exceeded, name was truncated
22 #endif
23 
24 #ifndef NOMINMAX
25 #define NOMINMAX
26 #endif // NOMINMAX
27 
28 #if _MSC_VER && TBB_USE_DEBUG
29 // Check that there is no conflict with _CRTDBG_MAP_ALLOC
30 #define _CRTDBG_MAP_ALLOC
31 #include "crtdbg.h"
32 #endif
33 
34 #include <exception>
35 
36 #define CHECK(x) do { if (!(x)) { std::terminate(); } } while (false)
37 #define CHECK_MESSAGE(x, y) CHECK(x);
38 
39 #define __TBB_TEST_SECONDARY 1
40 #include "test_tbb_header.cpp"
41