Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/constexpr-dtor14.C

raw
1 // PR c++/105529
2 // { dg-do compile { target c++20 } }
3 // { dg-options "-O" }
4 // Like constexpr-dtor13.C, except that allocator is not an empty class.
5
6 struct allocator {
7 constexpr ~allocator() {}
8 int a;
9 };
10 struct S {
11 S(int, int, allocator = allocator());
12 };
13 void to_string() { S(0, '\0'); }