aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor14.C
blob: 9c55121eb8abda0941dbcb555c6f70e37dc397f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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'); }