[libcxx-commits] [libcxx] dd756e3 - [libc++] Fix a test failure in 7b00e9fae3 (D93815).

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 28 10:57:13 PST 2020


Author: Arthur O'Dwyer
Date: 2020-12-28T13:55:40-05:00
New Revision: dd756e3e84812bd962a5b5eaf4f10e9c9338c232

URL: https://github.com/llvm/llvm-project/commit/dd756e3e84812bd962a5b5eaf4f10e9c9338c232
DIFF: https://github.com/llvm/llvm-project/commit/dd756e3e84812bd962a5b5eaf4f10e9c9338c232.diff

LOG: [libc++] Fix a test failure in 7b00e9fae3 (D93815).

"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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/function.objects/func.memfn/member_data.pass.cpp b/libcxx/test/std/utilities/function.objects/func.memfn/member_data.pass.cpp
index 5cb4d2d28ab5..d6cd06cd8cd0 100644
--- a/libcxx/test/std/utilities/function.objects/func.memfn/member_data.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/func.memfn/member_data.pass.cpp
@@ -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;


        


More information about the libcxx-commits mailing list