aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/explicit-obj-diagnostics9.C
blob: d420793c1e1a81f24b1826b2a2da53d4df43f95e (plain)
1
2
3
4
5
6
// PR c++/113340
// { dg-do compile { target c++23 } }

struct S {
  ~S(this S &) = default; // { dg-error "destructors may not have parameters" }
};