blob: 9c55121eb8abda0941dbcb555c6f70e37dc397f4 [file] [log] [blame]
// PR c++/105529
// { dg-do compile { target c++20 } }
// { dg-options "-O" }
// Like constexpr-dtor13.C, except that allocator is not an empty class.
struct allocator {
constexpr ~allocator() {}
int a;
};
struct S {
S(int, int, allocator = allocator());
};
void to_string() { S(0, '\0'); }