llvm/clang/test/CXX/dcl.decl/dcl.init/dcl.init.general/p16-cxx20.cpp

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s

// If the initializer is (), the object is value-initialized.

// expected-no-diagnostics
namespace GH69890 {
struct A {
    constexpr A() {}
    int x;
};

struct B : A {
    int y;
};

static_assert(B().x == 0);
static_assert(B().y == 0);
}