| 1 |
|
| 2 |
// Copyright Catch2 Authors |
| 3 |
// Distributed under the Boost Software License, Version 1.0. |
| 4 |
// (See accompanying file LICENSE.txt or copy at |
| 5 |
// https://www.boost.org/LICENSE_1_0.txt) |
| 6 |
|
| 7 |
// SPDX-License-Identifier: BSL-1.0 |
| 8 |
|
| 9 |
/**\file |
| 10 |
* Test that the Catch2 header compiles even after including windows.h |
| 11 |
* without defining NOMINMAX first. |
| 12 |
* |
| 13 |
* As an FYI, if you do that, you are wrong. |
| 14 |
*/ |
| 15 |
|
| 16 |
#include <windows.h> |
| 17 |
#include <catch2/catch_test_macros.hpp> |
| 18 |
|
| 19 |
TEST_CASE("Catch2 did survive compilation with windows.h", "[compile-test]") { |
| 20 |
SUCCEED(); |
| 21 |
} |