[libc++] Fix a test failure in 7b00e9fae3 (D93815).
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 28 Dec 2020 18:55:40 +0000 (13:55 -0500)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 28 Dec 2020 18:55:40 +0000 (13:55 -0500)
"LLVM Buildbot on libcxx-libcxxabi-x86_64-linux-debian" is not happy
with default-initializing the `double` member of `A` in a constexpr
function. At least I'm pretty sure that's what it's complaining about.

libcxx/test/std/utilities/function.objects/func.memfn/member_data.pass.cpp

index 5cb4d2d..d6cd06c 100644 (file)
@@ -25,7 +25,7 @@ TEST_CONSTEXPR_CXX20 bool
 test(F f)
 {
     {
-    A a;
+    A a = {0.0};
     f(a) = 5;
     assert(a.data_ == 5);
     A* ap = &a;