blob: d3fcd4ad354cbe111edf908aaa2b802f7b6d06a0 [file] [log] [blame]
// PR c++/105622
// { dg-do compile { target c++20 } }
struct empty {
empty() = default;
constexpr empty(int) { }
};
struct container {
empty __begin_ = {};
[[no_unique_address]] empty __size_ = 0;
};
constexpr bool test() {
container s;
return true;
}
static_assert(test());