diff options
| author | Martin Hořeňovský | 2020-02-13 16:57:33 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-13 16:57:37 +0100 |
| commit | b2a6523d85ec5f4614acdd3176c2f8ed7a669f7b (patch) | |
| tree | 209785ddbd2636ebfb9b54a82e43cc6244f04468 | |
| parent | b009d190bf3c75754391b739c8efd80033d6e133 (diff) | |
| download | catch3-b2a6523d85ec5f4614acdd3176c2f8ed7a669f7b.tar.gz | |
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.
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/String.tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |