X11-DisableStringification.cpp 650 B

123456789101112131415161718192021222324252627
  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 stringification of original expression can be disabled.
  8. *
  9. * This is a workaround for VS 2017, 2019 issue with Raw String literals
  10. * and preprocessor token pasting.
  11. */
  12. #include <catch2/catch_test_macros.hpp>
  13. namespace {
  14. struct Hidden {};
  15. bool operator==(Hidden, Hidden) { return true; }
  16. }
  17. TEST_CASE("DisableStringification") {
  18. REQUIRE( Hidden{} == Hidden{} );
  19. }