Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/explicit-obj-diagnostics9.C

raw
1 // PR c++/113340
2 // { dg-do compile { target c++23 } }
3
4 struct S {
5 ~S(this S &) = default; // { dg-error "destructors may not have parameters" }
6 };