Debian Codegraph @

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

raw
1 // PR c++/113389
2 // { dg-do compile { target c++23 } }
3
4 struct A {
5 void foo(A, this A); // { dg-error "only the first parameter" }
6 void qux(A, this A, // { dg-error "only the first parameter" }
7 this A); // { dg-error "only the first parameter" }
8 };