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