Skip to content

Commit dd756e3

Browse files
author
Arthur O'Dwyer
committed
[libc++] Fix a test failure in 7b00e9f (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.
1 parent 9abc457 commit dd756e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TEST_CONSTEXPR_CXX20 bool
2525
test(F f)
2626
{
2727
{
28-
A a;
28+
A a = {0.0};
2929
f(a) = 5;
3030
assert(a.data_ == 5);
3131
A* ap = &a;

0 commit comments

Comments
 (0)