Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-13 16:57:33 +0100
committerMartin Hořeňovský2020-02-13 16:57:37 +0100
commitb2a6523d85ec5f4614acdd3176c2f8ed7a669f7b (patch)
tree209785ddbd2636ebfb9b54a82e43cc6244f04468 /tests
parentb009d190bf3c75754391b739c8efd80033d6e133 (diff)
downloadcatch3-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.
Diffstat (limited to 'tests')
-rw-r--r--tests/SelfTest/IntrospectiveTests/String.tests.cpp2
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());