aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor13.C
blob: 7b289614fc15dad14a34e68500f8493a0e40b2ef (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/105529
// { dg-do compile { target c++20 } }
// { dg-options "-O" }

struct allocator {
  constexpr ~allocator() {}
};
struct S {
  S(int, int, allocator = allocator());
};
void to_string() { S(0, '\0'); }