Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fix Clang-3.8 compilation of tests

As far as I know, the compilation error is a compiler bug, but I
do not want to just drop the support for something that is trivial
to work around.
Commit
b2a6523d85ec5f4614acdd3176c2f8ed7a669f7b
Author
Martin Hořeňovský ·
Parents
b009d190bf3c

Files · Download .tar.gz

Changes

 tests/SelfTest/IntrospectiveTests/String.tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/SelfTest/IntrospectiveTests/String.tests.cpp b/tests/SelfTest/IntrospectiveTests/String.tests.cpp
index b7f4a2dd..5255804f 100644
--- a/tests/SelfTest/IntrospectiveTests/String.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/String.tests.cpp
@@ -130,7 +130,7 @@ TEST_CASE("StringRef at compilation time", "[Strings][StringRef][constexpr]") {
     //  * substr
     using Catch::StringRef;
     SECTION("Simple constructors") {
-        constexpr StringRef empty;
+        constexpr StringRef empty{};
         STATIC_REQUIRE(empty.size() == 0);
         STATIC_REQUIRE(empty.begin() == empty.end());