X90-WindowsHeaderInclusion.cpp 573 B

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